docs: Document Apple Bundle IDs for native iOS/macOS app sign-in#1139
Conversation
| </Step> | ||
| </Steps> | ||
|
|
||
| ## Native App Configuration (iOS/macOS) |
There was a problem hiding this comment.
Citation: PR #1130 adds Apple Native Sign In for iOS/macOS apps. The backend verifies Apple identity tokens against configured Bundle IDs (see apps/backend/src/app/api/latest/auth/oauth/callback/apple/native/route.tsx and the appleBundles config in apps/backend/src/lib/projects.tsx). The PR description states: "To use the Apple native sign in, users will have to...update the Stack-Auth Authentication Methods dashboard apple modal with the relevant fields."
View source
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the
Comment |
|
|
Greptile OverviewGreptile SummaryAdded a new "Native App Configuration (iOS/macOS)" section to the Apple authentication documentation that explains Bundle ID configuration requirements for native iOS/macOS apps using the Swift SDK. Key changes:
The documentation accurately reflects the implementation added in PR #1130, which introduced native Apple Sign In support and Bundle ID validation on the backend. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as iOS/macOS Developer
participant Docs as Apple Auth Docs
participant Portal as Apple Developer Portal
participant Dashboard as Stack Auth Dashboard
participant App as Native App
participant SDK as Swift SDK
participant Backend as Stack Auth Backend
Note over Dev,Backend: Setup Process (One-time Configuration)
Dev->>Docs: Read Apple auth setup guide
Docs->>Dev: Shows web OAuth setup (Steps 1-4)
Dev->>Portal: Create App ID with Bundle ID
Dev->>Portal: Create Service ID for web OAuth
Dev->>Portal: Configure domains & return URLs
Dev->>Portal: Create private key
Dev->>Dashboard: Configure Apple provider with Service ID
Note over Dev,Backend: Native App Configuration (NEW)
Docs->>Dev: Shows Native App Configuration section
Dev->>Dashboard: Open Apple provider modal
Dev->>Dashboard: Add Bundle ID(s) for native apps
Dashboard->>Backend: Store Bundle IDs in appleBundles config
Note over Dev,Backend: Runtime: Native Sign In Flow
App->>SDK: Call signInWithOAuth(provider: "apple")
SDK->>App: Use native ASAuthorizationController
App->>Backend: POST /auth/oauth/callback/apple/native
Backend->>Backend: Verify JWT audience matches Bundle ID
Backend->>App: Return access_token & refresh_token
|
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
|
Promptless escalated the following message to you. If you respond, please remember to tag Promptless: I've investigated the CI failure on PR #1139 (Document Apple Bundle IDs for native iOS/macOS app sign-in). The failing check is a TypeScript lint error in Since this is a codebase lint error rather than a documentation issue, this would need to be fixed by the engineering team in the main codebase. The documentation changes themselves are ready for review. |
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
1 similar comment
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
|
Promptless escalated the following message to you. If you respond, please remember to tag Promptless: I've investigated the CI failure on the "Document Apple Bundle IDs for native iOS/macOS app sign-in" PR. Finding: The failure is a database migration error in the backend code, unrelated to my documentation changes: This occurs during migration My documentation changes only modify This backend migration issue needs to be resolved by your engineering team. Once fixed, the CI checks should pass for this documentation PR. The documentation content is ready for review. |
|
🔧 I noticed that some CI checks failed for this PR. I'm investigating the failures and will work on fixing them. |
Open this suggestion in Promptless to view citations and reasoning process
Adds documentation for configuring Apple Bundle IDs in the Stack Auth dashboard, which is required for native iOS/macOS apps using Apple Sign In. The new "Native App Configuration" section explains that Bundle IDs are needed in addition to the existing web OAuth setup when using the Swift SDK's native
ASAuthorizationControllerflow, and provides step-by-step instructions for adding Bundle IDs in the Apple authentication method modal.Trigger Events
stack-auth/stack-auth commit (dev): c8694c7 [Fix] [Feat] Update OAuth Sign-In and Get Token Functions to Work (#1130)
Promptless Research (1 GitHub PR)
Agent Response
Help us improve Promptless — If this suggestion missed the mark, please share quick feedback.
If you want Promptless to make further changes on this PR, feel free to leave a comment tagging Promptless (It won't show up in the user drop down but Promptless will get it!)