purple-apple-47041
06/29/2022, 3:29 AMAn internal server error occurred, please contact the system administrator reason:Unable to initialize OpenID Connect Provider: Get "/.well-known/openid-configuration": unsupported protocol scheme "" stack_trace:
After looking through slack it looked like people were experiencing a similar issue in the past but it was not related to apple it was related to another OIDC provider. @high-optician-2097 Any ideas here? I will link our config and mapper in this thread for reference.purple-apple-47041
06/29/2022, 3:31 AMselfservice:
methods:
oidc:
enabled: true
config:
providers:
- id: apple
provider: apple
client_id: ....
apple_team_id: ....
apple_private_key_id: ....
apple_private_key: |
-----BEGIN PRIVATE KEY-----
....
-----END PRIVATE KEY-----
mapper_url: file:///etc/config/kratos/mappers/oidc.apple.jsonnet
scope:
- email
purple-apple-47041
06/29/2022, 3:32 AMlocal claims = {
email_verified: false,
} + std.extVar('claims');
{
identity: {
traits: {
// Allowing unverified email addresses enables account
// enumeration attacks, if the value is used for
// verification or as a password login identifier.
//
// Therefore we only return the email if it (a) exists and (b) is marked verified
// by Apple.
[if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
},
},
}
purple-apple-47041
06/29/2022, 3:35 AMunsupported protocol scheme ""
purple-apple-47041
06/29/2022, 3:39 AMloud-spoon-23770
07/01/2022, 1:45 PMissuer_url: <https://appleid.apple.com>
to your configuration in the oidc provider for appleloud-spoon-23770
07/01/2022, 1:46 PMpurple-apple-47041
07/01/2022, 1:46 PMloud-spoon-23770
07/01/2022, 1:46 PM