OneLogin can be configured as an identity provider (IdP) using OpenID Connect (OIDC), an authentication protocol that securely verifies user identities through a trusted provider. This document explains how to obtain the required credentials from the OneLogin Console. Refer to the **[OIDC Setup](/docs/user-management/sso/oidc/setup)** guide to configure OIDC in your application.
## Generating Client ID and Client Secret on OneLogin Admin Portal
1. Log in to [OneLogin](https://www.onelogin.com/). You'll need a domain for your organisation. You can get one by signing up for a **Free trial** on the home page.
2. Go to the Administration page, then navigate to **Applications > Applications > Add App**.
5. You'll need to create your user and add it to the OneLogin application that you just created. In the Naviagtion bar, go to Users > New User and create a user. After creating the user, open the user profile, go to Applications, and click the + icon to assign the user to the application you just created.
<imgclassName="screenshot-full border-none"src="/img/user-management/sso/oidc/onelogin/assign_application_1.png"alt="OneLogin: Assign Application to User"/>
7. Now go to your Application > **SSO** and get the Client ID. To get the Client secret, click on **Show client secret**. To get the Well-known configuration URL, click **Well-known Configuration** and copy the URL.
To configure group sync with OneLogin, you need to follow these steps:
1. Go to the OneLogin Admin Portal and navigate to Users → Roles → New Role. Create a role with the same name as the group you want to map. For example, to map the builder role in OneLogin to developer in ToolJet, name the role builder.
2. Select your app to add to the role and click on Save.
<imgclassName="screenshot-full border-none"src="/img/user-management/sso/oidc/onelogin/add_app_to_role.png"alt="OneLogin: Add Application To Role"/>
3. Add the user to the role. Navigate to **Users > Roles > The role you created > Users**. Now check for the user, click **Add to role** and Save.
<imgclassName="screenshot-full border-none"src="/img/user-management/sso/oidc/onelogin/add_user_to_role.png"alt="OneLogin: Add User To Role"/>
4. Go to Applications -> Your OneLogin Application -> Parameters. Now edit the Groups configuration as follows:
<imgclassName="screenshot-full border-none"src="/img/user-management/sso/oidc/onelogin/edit_field_groups.png"alt="OneLogin: Edit Field Groups"/>
5. Go to **Rules > Add Rule**. Enter a name of your choice for the rule.. Add a rule with the action:
`Set Groups in Application > Map from OneLogin > For each > member_of > with value that matches > .*`
<imgclassName="screenshot-full border-none"src="/img/user-management/sso/oidc/onelogin/one_login_rule.png"alt="OneLogin: One Login Rule"/>
6. Go to your ToolJet Application. Navigate to Workspace settings > Workspace login > OpenID Connect > Your OneLogin Configuration and Enable group sync.
7. Claim name will be set to `groups`.
8. Group mapping will be set as :
```js
<your-onelogin-role> -> <tooljet-group-name>
```
For example: If your OneLogin Role is **builder** and the ToolJet group name is **developer**, the mapping will be builder -> developer.