Descope supports many social logins such as Google, Facebook, Microsoft, etc. You can find the
currently supported list of social logins in the Descope console at
Settings>Authentication Methods>Social Login (OAuth).
The Descope console has the defaults set for all social logins. You can customize
these by configuring the social logins with your company account.
The first step in OAuth is to start the oauth process with the Identity Provider of your choice such as Google,
Facebook, Microsoft etc. For this step you need call oauth start function from your app client after user
clicks on social login icon.
After successful authentication with your IdP the user is redirected to the redirect_url that you provide in the
oauth start function above. Your application should extract the code from the redirect_url and perform
token exchange as shown below.
When running in iOS or Android, you can leverage the Sign in with Apple and
Sign in with Google features to show a native authentication view that
allows the user to login using the account they are already logged into
on their device.
Before you can use these features, you will need to configure your application to support them. For iOS, you will need to
complete the following Sign in with Apple configuration steps.
For Android, you will need to complete the following configuration steps.
After configuration, you can use the following code to initiate the native authentication flow:
The final step of completing the authentication with Descope is to validate the user session. Descope provides rich session management capabilities, including configurable session timeouts and
logout functions. You can find the details and sample code for client session validation here.
Checkpoint
Your application is now integrated with Descope. Please test with sign-up or sign-in use case.