Skip to content

Implement Apple OAuth login using OIDC ID token#11

Merged
subsub97 merged 3 commits intomainfrom
oauth-apple
Feb 7, 2026
Merged

Implement Apple OAuth login using OIDC ID token#11
subsub97 merged 3 commits intomainfrom
oauth-apple

Conversation

@subsub97
Copy link
Collaborator

@subsub97 subsub97 commented Feb 7, 2026

This pull request introduces Apple OAuth support for sign-in and sign-up, alongside various related changes to the authentication flow and configuration. The main updates include new DTOs, controller and service methods, and configuration adjustments to handle Apple as an OIDC provider.

Apple OAuth integration:

  • Added AppleSignInUpRequest and AppleSignInUpResponse DTOs for handling Apple sign-in/up requests and responses. (src/main/kotlin/com/moa/service/dto/AppleSignInUpRequest.kt, src/main/kotlin/com/moa/service/dto/AppleSignInUpResponse.kt) [1] [2]
  • Implemented appleSignInUp endpoint in AuthController and corresponding service logic in AuthService to process Apple login using OIDC. (src/main/kotlin/com/moa/controller/AuthController.kt, src/main/kotlin/com/moa/service/AuthService.kt) [1] [2]

OIDC provider enhancements:

  • Updated OidcProviderConfig to include Apple properties and adjusted OidcIdTokenValidator to support Apple as a provider, including JWKS URI and cache TTL handling. (src/main/kotlin/com/moa/common/oidc/OidcProviderConfig.kt, src/main/kotlin/com/moa/common/oidc/OidcIdTokenValidator.kt) [1] [2]

Configuration updates:

  • Added Apple OIDC configuration to application-local.yml, application-prod.yml, and application-test.yml for proper environment support. [1] [2] [3]

Other changes:

  • Removed the unused INVALID_PROVIDER error code from ErrorCode.kt as Apple is now a valid provider. (src/main/kotlin/com/moa/common/exception/ErrorCode.kt)
  • Updated the moa-secret submodule reference. (src/main/resources/moa-secret)

These changes collectively enable Apple OAuth flows within the authentication system, ensuring proper validation and token handling for Apple users.

@subsub97 subsub97 requested a review from jeyongsong February 7, 2026 14:47
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Test Results

8 tests   8 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 9283bc1.

Copy link
Member

@jeyongsong jeyongsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

가시죠~~

@subsub97 subsub97 merged commit 7d1822a into main Feb 7, 2026
2 checks passed
@subsub97 subsub97 deleted the oauth-apple branch February 7, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants