SSO
Learn how to configure Single Sign-On (SSO) in Momen to enhance user experience, improve security, and simplify access management for your applications.
What is Single Sign-On (SSO)?
Single Sign-On (SSO) is an authentication mechanism that allows users to access multiple related systems with a single login. By configuring SSO, new users can register and log in to your website using existing accounts (e.g. Google, Facebook, etc.).
Only supports the standard OAuth2 protocol
Available for Pro Plan and above
Benefits of Single Sign-On
Improved User Experience: Users only need to log in once to access multiple applications, reducing repetitive login operations.
Enhanced Security: By centralizing access management, SSO is more secure than traditional username and password authentication.
Simplified Management: Enterprises can simplify the management of multiple applications through SSO.
Steps to Configure SSO
1. Create an SSO Configuration in Momen
Open project settings, find "Login - SSO," and click "Add."
The system will automatically generate a callback URL for redirection after successful authorization.
2. Register an Application with an Identity Provider (e.g., Google)
Create a new project and fill in the project information.
Enable APIs and services in the project and set up the OAuth consent screen.
Configure the privacy policy and terms of service pages.
Set up the OAuth client ID and fill in the callback URL.
Obtain the client ID and client secret.
3. Fill in Application Information in Momen
Enter the client ID, client secret, and scope.
Save the configuration and enable SSO.
4. Configure Actions
Register/Login: After authorization, log in if the account exists; otherwise, register a new user.
Bind Existing Account: Bind the authorized account to the currently logged-in account.
Unbind Account: Unbind the current account from the SSO.
Consume SSO User Information
As an example of updating the user's "email" information:
Add an
email
field to the account table.Add the following code to the action flow to update the username and email in the account table:
Last updated