auth
auth copied to clipboard
Support OpenID tokens for getting using information
Some providers (e.g. Cognito) provide only minimal subset of user attributes in /userinfo
endpoint, but much more in the ID tokens. That can be helpful to pass user metadata from the provider to the app. This PR adds support of OpenID tokens as a source of user info, as an extension to the OAuth2 flow.
OpenID flow is only supported for custom providers at the moment and require JWKS URL configuration. Switching existing providers (e.g. google
) to OpenID is TBD, but probably not required. Using OpenID Connect (.well-known/openid-configuration
URLs) is out of scope for this PR.
Apple flow basically is OpenID, with some customisations on how client secret is passed across. So potentially these two flows can be merged together later on.
Pull Request Test Coverage Report for Build 2568262682
- 29 of 29 (100.0%) changed or added relevant lines in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage increased (+0.4%) to 96.099%
Totals | |
---|---|
Change from base Build 2443879937: | 0.4% |
Covered Lines: | 271 |
Relevant Lines: | 282 |
💛 - Coveralls
This feature is very useful. Is there anything needed for merging this PR?