SSO for Native Apps

Device SSO with PKCE Authorization and Token Exchange

Configuration
SSO for Native Apps Flow
1
User

Authorize (App 1)

Initiate authorization code flow with PKCE. Include device_sso and offline_access scopes to receive a device_secret.

/oauth2/default/v1/authorize
Configuration
/oauth2/default/v1/
Configure Okta Domain and Authorization Server to load scopes
cURL Command

          
        
2
CLIENT APP

Token Exchange (App 2)

Exchange the device_secret and id_token from App 1 to obtain new tokens for App 2 using the token exchange grant.

/oauth2/default/v1/token grant_type=urn:ietf:params:oauth:grant-type:token-exchange
cURL Command

          
        
3
CLIENT APP Optional

Test Token with API

Test the App 2 access token by making an authenticated API request to a resource server.

cURL Command