# Okta

his page outlines the instructions for configuring Okta as your identity provider for SSO in BirdCRM using OpenID.&#x20;

You first start by configuring specific steps in Okta and then following on with the steps required in BirdCRM before finalising your Okta configuration.

### Step one: Intitial setup in Okta

1. Navigate to the **Applications** section in Okta.<br>

   <div align="left"><figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FM2I9K5ItXuiwkDJZq78v%2Fimage.png?alt=media&#x26;token=80bff8a4-ccbe-46bb-9a82-1038cc56cf69" alt="" width="561"><figcaption></figcaption></figure></div>
2. Click on **Create App Integration** and select OIDC - OpenID Connect and Web Application and click **Next**.<br>

   <div align="left"><figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FmpcagEicUIm3jXEEmJZ7%2Fimage.png?alt=media&#x26;token=e930b7aa-a1c8-4cc5-ad6f-650091d5b3d6" alt="" width="563"><figcaption></figcaption></figure></div>
3. Fill out a name for the Application that will appear in your users Okta applications list and optionally a logo. The BirdCRM logo is shown below the screenshot for convenience.
4. Then fill out the following URL in the Sign-in redirect URIs section: `https://api.bird.com/auth/oidc/callback`
5. Remove the Sign-out URIs and click **Save**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAwP3nGX1wbmYfkuWbODZDFDW8rAI5UhxroO9Gq01Ti4mEtRiLSNnP-oAOMVhqiifPLs6izxBDZNuNva7mcWnWtsuuQ8JbDU_UPXduOhppHapZehlW-y0PFPII47aUU4YSWCktBXinZs0wBTdSvBQiNOk?key=G4cws1tM_IONCfaBmekmJw" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcaLzyap0qZIv5E4Bc1oeE3AgPGTPzAvdUI4ySreu2B4M9JviRP03kSbZIK3GvF7nlmKYsZ7Zm3w345B-jwDDNanR4DTLw9fbAzfMuMj7xVwUP2n1IU11O6Ev5sVGQMuS7MYnHLKDmjctNIo2LRzLOkX4A?key=G4cws1tM_IONCfaBmekmJw" alt="" width="188"><figcaption></figcaption></figure>

6. Once the application is created, you need to take a copy of the Client ID and Client Secret as can be seen in this screenshot. They will be needed on the BirdCRM side to complete the configuration.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd1FrE6FCOLrHf9WDZoxWECxYOiI7ZXtF_VyOwVFcDDVMV5onMy85W6Lp3U_D3M5FSq8X_ATxedxq9fIYYDRdIkYh9NzdBD0geKMaOrwI53O1z1P7IbgYthrSI8Sm33lP2sbwlyR6uQ1pR8vokYLgI-3WY?key=G4cws1tM_IONCfaBmekmJw" alt="" width="563"><figcaption></figcaption></figure>
7. Next, click on the Okta API Scopes tab for the application, scroll down to okta.myAccount.email.read and click on **Grant**.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcNRQ_4FQTxMkdX4ZNe_1KzgE4SAzMLNKPtfeLR8enP0-88b1Xj7OAyd8EjknISCHcmWuQaPMgeqJh0tR_jjV-qUz0Hyc1Y6YfIEwurlVVAOV5JSnC-h46kY4XJr9QrOhGR8IdMgj-2dEZSJ9jHwYmUubQ?key=G4cws1tM_IONCfaBmekmJw" alt="" width="563"><figcaption></figcaption></figure>
8. This stage of the Okta setup is now complete. Once the BirdCRM instructions below are completed, there are some optional steps that can be taken in Okta to enhance the user experience.&#x20;
9. Any user assignments can be done now for the application.

### Step two: Set up in Bird

1. Navigate to the [Settings](https://app.staging.bird.one/settings/security/access-settings) page by clicking on Settings in the bottom left, then  selecting **Access Management** under the **Organization** tab.

   <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FOTXk5krTJt0LMFbJfcUa%2Fimage.png?alt=media&#x26;token=24aa8c5b-1b28-4e1f-9b77-7d16ec7d9952" alt="" width="210"><figcaption></figcaption></figure>

<figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FGA8nNE8T6BX7h9vnMMWo%2Fimage.png?alt=media&#x26;token=6b60f5a9-a20d-4859-bfaa-e64148b33827" alt=""><figcaption></figcaption></figure>

2. Click **Set Up SSO**, then select **OpenID**.<br>

<figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FTHaOQs7Dl6b10TNUOWS1%2Fimage.png?alt=media&#x26;token=316fa315-d2d8-484a-91a4-a66866526b2d" alt="" width="230"><figcaption></figcaption></figure>

1. Fill out a name for the SSO setup and fill out your Okta URL as the Issue URL. This is normally in the format `companyname.okta.com` and is the URL you use to access your Okta applications.&#x20;
2. Copy and paste the Client ID and Client Secret that were copied from Okta in Step 4. of the Okta instructions.&#x20;
3. In 'Other Scopes', fill out email and then select **New scope: email** to add it as shown in the screenshot below.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFOIyraueCpnpXnDkQUO30ygA-HeMmUrvKzoDy176WHpO9xkuiI9zT2QT95ce_pwc50NgGOZh4pPAwDXk4eBwmnc-zaE1n98AiIDSvt41GvLYYOboFgdaSg91-Cz3n-0aGvjdjgW0qX1yTepSGS7XUmYM?key=G4cws1tM_IONCfaBmekmJw" alt="" width="375"><figcaption></figcaption></figure>
4. The final setup should look similar to this:\
   ![](https://lh7-us.googleusercontent.com/J0B6AfXyqbKEYtQMHZiEgayANPLo2DfUwLggubdvjsmJ8ik4Vjwuphbl0VdPsmPEfn1AzBuTyepvy2PlziUiWz8ri738OqbaDNmWriC1JVw98nxfoVwk9F3KVaQ3kAnKIVeMSKpcesfHewSKKLORUdE)

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-3wq6GiyRd7bKsmv4-ZftiRO5lyfmcbEN71Y-zRmSbLMtfS_M27VYlusIdFV1FEisabTvxNHMOzINbSm-zTg3qMRpKAAvmwh9s5w5ksv1t9G-yZfmVcZ23EN_DDbLFMwS8h0SkKroHct5nBe9GmKyEzU?key=G4cws1tM_IONCfaBmekmJw" alt="" width="375"><figcaption></figcaption></figure>
5. Click on **Confirm** and your SSO configuration will be saved.&#x20;
6. Now we will validate your domain(s) that you will login from Okta with. First click on the **Domain Validation** button available when viewing your SSO integration.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe0FVsgHNIqtsTwE5u2MPh3immfQ-1wuMmOGicGRP5HSyhTpaLv5IdFbvhMC40IZffiRy3slMquMCLOPMjGQQSY5HzE6ZjDntR4xpFJUyfhjUnuqGC6-6DITU7GqNsx8y6bW8o4dBPsMHkonyFlV4uWdtQ?key=G4cws1tM_IONCfaBmekmJw" alt="" width="563"><figcaption></figcaption></figure>
7. Enter your company domain name that you login with (e.g. companyname.com) and click **Create**.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeSNDLjmE23zRwwwECwfPQN0l5xw4SdDR7Bxg_iwHyRqVOqZVUdndKNNCRwB4cIxGgReyB9OBzvbQaLvIbqP1xUklj6wXMQ-dfzZ1j55MtnHabGyAIwAnGFODi1Nh4ewQ_uR3j__NKUDPWqpFPMveDb14o?key=G4cws1tM_IONCfaBmekmJw" alt="" width="563"><figcaption></figcaption></figure>
8. You will then be presented with a unique string under the Challenge column that needs to be placed as a TXT record in your domain. If you are unsure how to add a TXT record please consult with your DNS provider.
9. Once you have added the TXT record to verify your domain, you can select **Verify**
10. If the TXT record was added correctly it will then show the Status of Verified.&#x20;
11. Now you can setup the identity provider initiated login. From the Single-Sign On page, click on the 3 dots menu on the right for your identity provider you have configured and select **View**.<br>

    <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2Fo7EfrmbK1waqvugOUq6v%2Fimage.png?alt=media&#x26;token=f85aa7d0-724a-4fe2-a2b3-0e2eb9cd4b17" alt=""><figcaption></figcaption></figure>
12. You can then see the Initiate Login URI at the bottom which you can take a copy of to apply in your Okta configuration (see next step).<br>

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfESXAMcBYvLzLhMnE4Lnr54GDmw0P0-5lI_t3tjZCk5wv3EPBBeaPnoVXGtud-3FdJM8UaFHmRDIvuABrFyOyj-Mwtr3fvTqYEDli8O0nacSaCO5Jz3CvI4j2fnSuqWPETzw8eAKkqnmwqfwi5lIAo2w?key=G4cws1tM_IONCfaBmekmJw" alt="" width="375"><figcaption></figcaption></figure>

### Step three: Allow login from Okta

1. If you would like to improve the user experience and allow logins to be initiated from Okta, scroll down to General Settings of your Application and click **Edit**.&#x20;
2. Change the Login initiated by to Either Okta or App.
3. Tick the Display application icon to users option.
4. Paste the Initiate Login URI you took a copy of into the **Initiate login URI field** in your Okta application.&#x20;
5. Click **Save**.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXexEfsSN2dHfYnwWSvB2bu4pcmVCzT56CsR1hcil9irGiT4fecyRjNme-xcu8ytPapch-plWtABCPcl28Wnq20Ike4hqUYBniU7nPo3ImxHwBDghs7c4mVZk_NgZ4qXTJJFgmSIeCWy23oVm54Jawo0Qpc?key=G4cws1tM_IONCfaBmekmJw" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="success" %}
This completes the setup and your users that you have assigned the Okta application to should now be able to login via Okta.

As an optional step, you can enforce SSO login for your organization. Please see the [Enforce SSO](https://docs.bird.com/applications/settings/account/organization-settings/single-sign-on-sso/enforce-single-sign-on-sso) section of the SSO page to do this.&#x20;
{% endhint %}
