<#C010F7Z4XM1|> Please help me resolve this issue ...
# general
g
#C010F7Z4XM1 Please help me resolve this issue which we are facing while integrating with Authentication server. this error we are getting while integrating from Ory Kratos { "id": "58e419a6-1e4f-49ca-aa90-5e9f080f95ea", "error": { "code": 500, "status": "Internal Server Error", "reason": "Unable to initialize OpenID Connect Provider: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html\": invalid character '<' looking for beginning of value", "message": "An internal server error occurred, please contact the system administrator" }, "created_at": "2024-05-02T051930.589278Z", "updated_at": "2024-05-02T051930.589278Z" }
c
Looks like misconfigured provider section in kartos.yml Kratos fetches openid metadata url from issuerUrl + '/.well-known/openid-configuration' and it seems that your provider doesnt respond with JSON.
g
Thanks Oskars for your response. How we can conclude whether it is provider issue. This provider is new to us for integration. Also we are new to Ory Kratos, so if you could give us some more details which help us discuss with the Service provider
c
You must check on which url your provider servec openid configuration. For google for instance you configure issuerUrl: https://accounts.google.com And then kratos will fetch configuration from this url https://accounts.google.com/.well-known/openid-configuration
g
We raised an issue for this one and we found it is working fine with Keycloak with the same openid configuration. https://github.com/ory/kratos/issues/3905
@cold-nest-53329 Please have a look at this issue if possible please provide any options to resolve it
c
I think you cant configure provider without metadata endpoint. I ended up forking and implementing a custom provider in such case.