Hi folks. I’m confused a bit. I’m trying to dig in...
# talk-kratos
f
Hi folks. I’m confused a bit. I’m trying to dig into some kratos configuration (at my work) and I have found something strage in it: The config looks like this. It uses generic OIDC provider configuration.
Copy code
providers:
          - id: adfs
            provider: generic
            client_id: "..."
            mapper_url: <file://path/to/oidc.jsonnet>
            client_secret: "..."
            issuer_url: <https://some.adfs.provider.com>
            auth_url: <https://some.other.url.com/oauth/auth>   // Looks like these param are purposeless.
            token_url: <https://some.other.url.com/oauth/token> // Looks like these param are purposeless.
The strange thing here is that looks like these params (
auth_url, token_url
)(https://github.com/ory/kratos/blob/eb8d1b9abd6d2b3eb86ab11d48d9ebd059586b67/selfservice/strategy/oidc/provider_config.go#L57-L65) does not make any sense for “generic” providers at all because they seems have not used anywhere is source code (I couldn’t find any references). Am I right or wrong? And If I’m wrong could you point me where can I find these params usage?
Any change someone could help to figure out this? 🥲
l
As far as I can see, they are set via
NewProviderGenericOIDC
and used in the call to
OAuth2
to create a new
oauth2.Config
object, both in the
provider_config.go
file.