Apple native login.
Verifies an Apple `identityToken` (from `ASAuthorizationAppleIDProvider`) server-side and, depending on `downstreamState`, issues either a direct browser session (Bearer token family bound to `clientId`) or a downstream authorization code for the Code+PKCE flow. Requires the realm to have an enabled Apple provider.
Verifies an Apple identityToken (from ASAuthorizationAppleIDProvider)
server-side and, depending on downstreamState, issues either a direct
browser session (Bearer token family bound to clientId) or a downstream
authorization code for the Code+PKCE flow. Requires the realm to have an
enabled Apple provider.
realmId*stringRealm ID
application/json- body
clientId*stringHerald ClientApp client_id that the direct-session token family binds to.
downstreamState?|Optional downstream authorization transaction identifier (OAuth state).
Presence selects the downstream-authorization-code branch; absence the
direct-session branch.
identityToken*stringApple-issued identity token (JWT) from ASAuthorizationAppleIDProvider.
Downstream-authorization-code mode: redirect URI returned for Code+PKCE exchange
application/json- response
redirectUri*stringFull redirect URI returned by issue_downstream_authorization_code,
including ?code=ac_...&state=... for the downstream Code+PKCE flow.
curl -X POST 'https://example.com/api/oauth/string/apple/native-login' \
-H 'Content-Type: application/json' \
-d '{
"clientId": "string",
"identityToken": "string"
}'{
"redirectUri": "string"
}