Skip to content

[codex] add Apple OAuth provider#281

Merged
iarunsaragadam merged 1 commit into
mainfrom
codex/add-apple-oauth
Jun 23, 2026
Merged

[codex] add Apple OAuth provider#281
iarunsaragadam merged 1 commit into
mainfrom
codex/add-apple-oauth

Conversation

@iarunsaragadam

Copy link
Copy Markdown
Contributor

Summary

Adds Sign in with Apple alongside Google, Microsoft, and GitHub, including typed OAuth exchange parameters, Apple ID-token verification, provider registration, generated API updates, and operator documentation.

Security and behavior

Adds hosted OAuth callbacks with PKCE, signed state, bounded per-provider __Host- CSRF token sets, Apple form_post handling, and exact-origin/path return URL validation. Concurrent hosted sign-ins now complete independently.

Impact

Operators can configure Apple OAuth with the documented GATEWAY_OAUTH_APPLE_* variables. Browser clients can use the hosted flow or forward Apple's application-owned POST callback into the headless API.

Validation

  • Full multi-agent review gate: approved
  • go test ./pkg/oauth ./internal/app ./internal/config ./internal/connect ./internal/service ./internal/observability
  • go test -tags=integration ./tests/integration -run '^$'
  • npm run build in docs-site
  • git diff --check and gofmt -l


csrfTokens, ok := hostedOAuthCSRFTokens(r, provider)
if !ok {
h.logger.Info("hosted_oauth_csrf_cookie_invalid", zap.String("provider", provider))
@iarunsaragadam iarunsaragadam force-pushed the codex/add-apple-oauth branch from 49ed0fb to 36c4b40 Compare June 23, 2026 12:01
@iarunsaragadam iarunsaragadam merged commit 5d8aaf3 into main Jun 23, 2026
23 of 24 checks passed
@iarunsaragadam iarunsaragadam deleted the codex/add-apple-oauth branch June 23, 2026 13:04
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