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

More OAuth2 extensions #61

Merged
merged 2 commits into from
Dec 30, 2023
Merged

More OAuth2 extensions #61

merged 2 commits into from
Dec 30, 2023

Conversation

Zastai
Copy link
Owner

@Zastai Zastai commented Dec 30, 2023

This adds PKCE support, and adjusts the user info retrieval to handle the case where the email scope has not been grated.

Note that this breaks the API of the `CreateAuthorizationRequest` and
`GetBearerToken[Async]` methods (due to additional parameters).

This also slightly tweaks the bodies of requests, putting each form
parameter on a separate line (mainly results in more readable traces).
The email address in the user info is now considered optional (because
it is only returned when the `email` scope has been granted). The
documentation for `GetUserInfo[Async]` now mentions this, as well as the
requirement for the `profile` scope to have been granted.

This also renames `AuthorizationScope.EMail` to
`AuthorizationScope.Email`.
@Zastai Zastai added breaking An incompatible change to a feature or API (requires a bump of the major version) feature A new feature or API was added (requires a bump of the minor version) labels Dec 30, 2023
@Zastai Zastai self-assigned this Dec 30, 2023
@Zastai Zastai merged commit c3c7926 into main Dec 30, 2023
2 checks passed
@Zastai Zastai deleted the extend-oauth2 branch December 30, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking An incompatible change to a feature or API (requires a bump of the major version) feature A new feature or API was added (requires a bump of the minor version)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant