Get Your Login Page URL#
Navigate to the Branding section of your SSOJET dashboard.
Select the Widgets section
Click on the Try Now Button , it will redirect to your Login Page. Use this URL to login your users into your application.Configuring the redirect URL is a crucial step in setting up your authentication flow, ensuring that users are properly redirected back to your application after successful authentication. Below is a detailed guide on how to configure the redirect URL for your application:Understanding the Redirect URL#
Purpose: The redirect URL is the endpoint in your application where users are sent after they have authenticated successfully through the authentication provider.Usage: It ensures a seamless transition back to your application, allowing you to handle the authentication response and proceed with your custom logic.Determine the endpoint in your application that will handle the authentication response. This is typically a route dedicated to processing the authentication token or code.Example redirect URL: /auth/callback
Setting Up the Redirect URL#
Navigate to the API Settings section of your SSOJet dashboard.
Select the Domain section.
Enter the your application redirect URL.
The default authentication method support for Login page is magic link. Configuring and enabling any SSO connections from SSOJet dashboard (e.g., Okta, AzureAd, etc.), will get displayed on your Login Page.Handling Redirection#
After successfully verifying the magic link, your user will be redirected to your application's specified redirect URL, with the state parameter included in the query string. The state ID is used to get the token for successful login, check the exmaple below:Example React Code snippet will get state query parameter value and request the SSOJet magic link status API.https://api.ssojet.com/api/v1/auth/passwordless/magic-link/status?state=<state>
.This API will return access token after successful verification and authentication status of the user.Modified at 2024-07-24 12:12:49