django-oidc-provider icon indicating copy to clipboard operation
django-oidc-provider copied to clipboard

ENHANCE: Add "claims_supported" part of openid-configuration

Open stevenandres opened this issue 5 years ago • 5 comments

Forgive the perhaps obvious question -- trying to interface a working OIDC provider setup with a third-party system that is complaining that the "claims_supported" dictionary is not provided at .well-known/openid-configuration

How do we enable that section? I'm a bit lost in the weeds of the documentation. I don't want to create any custom types, just the standard ones. I was told by this third party that our openid-configuration should look similar to this demo response:

https://abc123-admin.oktapreview.com/.well-known/openid-configuration

stevenandres avatar Jul 11 '19 00:07 stevenandres

https://github.com/juanifioren/django-oidc-provider/blob/master/oidc_provider/views.py#L260-L292

Doesn't look like there are currently any mechanisms to support this. It's not part of the current built in response, so would need to be added.

Relevant spec

Note supported_claims is recommended but not a required field.

geoff-va avatar Jul 25 '19 16:07 geoff-va

Correct -- it is not required but I have run into a couple of large third party enterprise systems that are treating it as if it were required (not adhering to standards). In any case, it might be a "nice-to-have" for future revisions of the library. Thanks for the reply!

stevenandres avatar Jul 25 '19 19:07 stevenandres

You bet - does sound like it would be a useful feature to have. Might be worth re-opening this issue or create a new request as an enhancement if you're interested!

geoff-va avatar Jul 25 '19 19:07 geoff-va

Can I just use an issue as an enhancement? Didn't know what was polite way to do it. I'll reopen and see what we get.

stevenandres avatar Jul 25 '19 20:07 stevenandres

yup! You may want to rename it so it's more indicative of the request - something like: Add claims_supported to open-id configuration or whatever you see fit, and then reference pertinent specs in your request.

At some point a maintainer can tag the issue as an Enhancement (See labels tab in the Issues section).

geoff-va avatar Jul 25 '19 20:07 geoff-va