Okta
复制一个包含安装步骤和本插件的完整Markdown指南的设置提示.
Okta通过以下方式得到支持:
- The
oktaAuth Connect preset - 直接配置到您的 Okta 发布者
oauth2Auth Connect preset 示例
标题:Auth Connect preset 示例
复制到剪贴板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',});标题:直接 OAuth2 示例
复制到剪贴板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', },});标题:相关文档']} (Note: The translation is in Simplified Chinese as per the target language specified) . Direct configuration against your Okta issuer was translated to “直接配置到您的 Okta 发布者” which is more natural and idiomatic in Simplified Chinese. Similarly, Direct OAuth2 example was translated to “直接 OAuth2 示例” and Related docs was translated to “相关文档”. The title of the section was also translated accordingly. The translation of
Copy to clipboard从 Okta 继续
标题:从 Okta 继续如果您正在使用 Okta 来规划身份验证和帐户流程,连接它到 使用 @capgo/capacitor-social-login for the native capability in Using @capgo/capacitor-social-login, 使用 @capgo/capacitor-social-login 来实现 @capgo/capacitor-social-login 的细节 @capgo/capacitor-passkey 为 @capgo/capacitor-passkey 的实现细节 @capgo/capacitor-native-biometric 为 @capgo/capacitor-native-biometric 的实现细节, 和 双因素认证 为双因素认证的实现细节。