Repository navigation
feat: add Social Sign-In providers, endpoints, and OAuth2 grant - #33
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Authly::SocialProfile,Authly::Social::Provider, and pluggableAuthly::Social::HttpClient(with bounded 1 MB response reads and 10s timeouts).Authly::Social::Google— OAuth 2.0 + OIDC/v1/userinfoandid_tokenverification)Authly::Social::GitHub— OAuth 2.0 +/user+/user/emailsfallback for primary verified email)Authly::Social::Apple— Sign in with Apple withform_post,id_tokenverification, and first-loginuserJSON payload extraction)Authly::Social::Microsoft— configurabletenant+ Microsoft Graph OIDC UserInfo)Authly::Social::Discord—/users/@me+ CDN avatar resolution)Authly::Social::GenericOAuth2— configurable endpoints and claim field mappings)GET /oauth/social/:providerandGET|POST /oauth/social/:provider/callback) withS256PKCE and single-use signed CSRFstatetokens.POST /oauth/tokenwithgrant_type=socialandurn:ietf:params:oauth:grant-type:social).AuthorizableOwner#resolve_social_owner(profile)andAuthly.config.social_owner_resolver/Authly.config.on_social_authenticated.spec/social_auth_spec.crand GitBook documentation indocs/how-to/social-sign-in.md.