-
Notifications
You must be signed in to change notification settings - Fork 442
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
Add claims parameter to authorize #1045
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Although we don't technically support Open ID Connect (OIDC), I can't see any reason not support this.
- Add support in AppAuth-iOS
- Documentation updates
Description
Currently, the
setClaims
method of App Auth is not exposed. By adding a new keyclaims
toAuthConfig
, similar toscopes
, when it is set, we can callsetClaims
on theAuthorizationRequest.Builder
to add the requested claims to the authorization request.Steps to verify
Create a
AuthConfiguration
that requests some claims about the user:Then, use
authorize
to obtain an idToken, and verify that the requested claims are included in the token.Draft
This PR implements the
claims
key in theAuthConfiguration
on the Android side. However, I do not own iOS devices and can therefore not implement this for iOS. I am opening this PR in the hopes that someone else completes it for the iOS side.