Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "Aud" an array to support "cross-client trust" - scenario #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

droid42
Copy link

@droid42 droid42 commented Mar 6, 2019

The code works in your scenario, but "in the general case, the aud value is an array of case sensitive strings." (https://openid.net/specs/openid-connect-core-1_0.html#IDToken)

If one specifies "cross-client trust" (https://github.com/dexidp/dex/blob/master/Documentation/custom-scopes-claims-clients.md#cross-client-trust-and-authorized-party - I think the example in the Dex-Doc where the "ID token claims" are shown is not correct any more), an array is returned for "Aud" (due to dexidp/dex#1088).

To support both possible "aud"-variants, single string and string array, we have to use interface{} and decide on the concrete response-value via type assert if needed.

Alexander Bloss and others added 2 commits March 6, 2019 16:48
…lue is an array of case sensitive strings." (https://openid.net/specs/openid-connect-core-1_0.html#IDToken)

If one specifies "cross-client trust" (https://github.com/dexidp/dex/blob/master/Documentation/custom-scopes-claims-clients.md#cross-client-trust-and-authorized-party  - I think the example in the Dex-Doc where the "ID token claims" are shown is not correct any more), an array is returned for "Aud" (due to dexidp/dex#1088).
…ay, we have to use interface{} and decide on the concrete response-value via type assert if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant