feat(apple-oidc): support iOS AuthenticationServices Sign In with Apple flow#284
Open
aryasaatvik wants to merge 2 commits intoanomalyco:masterfrom
Open
feat(apple-oidc): support iOS AuthenticationServices Sign In with Apple flow#284aryasaatvik wants to merge 2 commits intoanomalyco:masterfrom
aryasaatvik wants to merge 2 commits intoanomalyco:masterfrom
Conversation
- Added `clientSecret` and `responseType` options to the Apple OIDC provider. - Updated OIDC configuration to include `tokenEndpointAuthMethod`. - Implemented handling for authorization code flow in the OIDC provider, including token exchange logic.
…le flow (anomalyco#4) branched from anomalyco#3 which fixed issues in Apple OIDC provider resolves anomalyco#210 adds support for direct integration with iOS/macOS [AuthenticationServices](https://developer.apple.com/documentation/authenticationservices/implementing-user-authentication-with-sign-in-with-apple) (Sign in with Apple) by updating the AppleOidcProvider to validate Apple ID tokens via the client_credentials grant type. Previously, OpenAuth had no way to directly validate Apple ID tokens obtained from iOS apps using the native Sign in with Apple flow. This required app developers to either: 1. Implement a separate authentication service for iOS 2. Use a custom web view that disrupted the native iOS experience 3. Send tokens to a custom backend for validation This PR extends the OpenAuth client_credentials grant type to handle Apple ID token verification, allowing iOS applications to authenticate directly with the OpenAuth server: 1. The iOS app obtains an ID token through Apple's ASAuthorizationAppleIDProvider 2. The app sends this token to OpenAuth's /token endpoint via client_credentials grant 3. OpenAuth validates the token against Apple's JWKS and returns OpenAuth access/refresh tokens 4. The iOS app uses these tokens like any other OpenAuth client
🦋 Changeset detectedLatest commit: f55799f The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
branched from #283 which fixed issues in Apple OIDC provider
resolves #210
adds support for direct integration with iOS/macOS AuthenticationServices (Sign in with Apple) by updating the AppleOidcProvider to validate Apple ID tokens via the client_credentials grant type.
Previously, OpenAuth had no way to directly validate Apple ID tokens obtained from iOS apps using the native Sign in with Apple flow. This required app developers to either:
This PR extends the OpenAuth client_credentials grant type to handle Apple ID token verification, allowing iOS applications to authenticate directly with the OpenAuth server: