Okta
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
Overview
Section titled “Overview”Okta is supported through:
- The
oktaAuth Connect preset - Direct
oauth2configuration against your Okta issuer
Auth Connect preset example
Section titled “Auth Connect preset example”import { SocialLoginAuthConnect } from '@capgo/capacitor-social-login';
await SocialLoginAuthConnect.initialize({ authConnect: { okta: { issuer: 'https://dev-12345.okta.com/oauth2/default', clientId: 'your-okta-client-id', redirectUrl: 'myapp://oauth/okta', }, },});
const result = await SocialLoginAuthConnect.login({ provider: 'okta',});Direct OAuth2 example
Section titled “Direct OAuth2 example”import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { okta: { appId: 'your-okta-client-id', authorizationBaseUrl: 'https://your-domain.okta.com/oauth2/default/v1/authorize', accessTokenEndpoint: 'https://your-domain.okta.com/oauth2/default/v1/token', redirectUrl: 'myapp://oauth/okta', scope: 'openid profile email offline_access', pkceEnabled: true, resourceUrl: 'https://your-domain.okta.com/oauth2/default/v1/userinfo', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'okta', },});Related docs
Section titled “Related docs”Keep going from Okta
Section titled “Keep going from Okta”If you are using Okta to plan authentication and account flows, connect it with Using @capgo/capacitor-social-login for the native capability in Using @capgo/capacitor-social-login, @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication for the implementation detail in Two-factor authentication.