OneLogin
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
Overview
Section titled “Overview”OneLogin is supported through the onelogin Auth Connect preset. You can also configure it manually using direct OAuth2 endpoints.
Auth Connect preset example
Section titled “Auth Connect preset example”import { SocialLoginAuthConnect } from '@capgo/capacitor-social-login';
await SocialLoginAuthConnect.initialize({ authConnect: { onelogin: { issuer: 'https://your-tenant.onelogin.com/oidc/2', clientId: 'your-onelogin-client-id', redirectUrl: 'myapp://oauth/onelogin', }, },});
const result = await SocialLoginAuthConnect.login({ provider: 'onelogin',});Direct OAuth2 example
Section titled “Direct OAuth2 example”import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { onelogin: { appId: 'your-onelogin-client-id', authorizationBaseUrl: 'https://your-tenant.onelogin.com/oidc/2/auth', accessTokenEndpoint: 'https://your-tenant.onelogin.com/oidc/2/token', redirectUrl: 'myapp://oauth/onelogin', scope: 'openid profile email', pkceEnabled: true, resourceUrl: 'https://your-tenant.onelogin.com/oidc/2/me', logoutUrl: 'https://your-tenant.onelogin.com/oidc/2/logout', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'onelogin', },});Related docs
Section titled “Related docs”Keep going from OneLogin
Section titled “Keep going from OneLogin”If you are using OneLogin 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.