Skip to content

Commit 3e73ce6

Browse files
Merge pull request #4502 from gbarideau/dev/gba/guide_saml_okta
doc: OVHcloud account SSO connection through Okta
2 parents 40df47d + 6c7487b commit 3e73ce6

24 files changed

+170
-0
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
---
2+
title: Enabling Okta SSO connections with your OVHcloud account
3+
slug: connect-saml-sso-okta
4+
excerpt: "Learn how to associate your Okta service with your OVHcloud account via SAML 2.0"
5+
section: 'Advanced use'
6+
order: 02
7+
updated: 2023-04-18
8+
---
9+
10+
**Last updated 18th April 2023**
11+
12+
## Objective
13+
14+
You can use unique **single sign-on** (SSO) to sign in to your OVHcloud account. To enable these connections, your account and Okta accounts have to be configured using Security Assertion Markup Language (SAML) authentication.
15+
16+
**This guide explains how to associate your OVHcloud account with an external Okta service.**
17+
18+
## Requirements
19+
20+
- Being an administrator of a Okta service
21+
- An [OVHcloud account](https://docs.ovh.com/gb/en/customer/create-ovhcloud-account/)
22+
- Access to the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.co.uk/&ovhSubsidiary=GB)
23+
24+
## Instructions
25+
26+
> [!primary]
27+
>
28+
> In order for a service provider (i.e. your OVHcloud account) to establish an SSO connection with an identity provider (i.e. your Okta service), the key is to establish a mutual trust relationship by registering the SSO connection in both services.
29+
>
30+
31+
### Registering OVHcloud into Okta
32+
33+
Your Okta service acts as an identity provider. Requests to authenticate your OVHcloud account will only be accepted if you have first declared it as a trusted third party.
34+
35+
This means that it must be added as `Applications`.
36+
37+
Log in to the Okta administration interface with your administrator account.
38+
39+
Go to `Applications`{.action} then again `Applications`{.action}.
40+
41+
![Add SAML Application, Step 1](images/OKTA_add_application_step1.png){.thumbnail}
42+
43+
Click `Create App Integration`{.action} and select `SAML 2.0`{.action}.
44+
45+
![Add SAML Application, Step 2](images/OKTA_add_application_step2.png){.thumbnail}
46+
47+
In the "General Settings" step, add a name for this Applications, **OVHcloud** for example, and a logo if you want. Click `Next`{.action}.
48+
49+
![Add SAML Application, Step 3](images/OKTA_add_application_step3.png){.thumbnail}
50+
51+
In the step "Configure SAML", complete the `Single sign-on URL` and `Audience URI` fields with the values for your region:
52+
53+
- EU region: **Single sign-on URL**: `https://www.ovhcloud.com/eu/auth/saml/acs` and **Audience URI**: `https://www.ovhcloud.com/eu/auth/`
54+
- CA region: **Single sign-on URL**: `https://www.ovhcloud.com/ca/auth/saml/acs` and **Audience URI**: `https://www.ovhcloud.com/ca/auth/`
55+
56+
![Add SAML Application, Step 4](images/OKTA_add_application_step4.png){.thumbnail}
57+
58+
Then set the following Attributes Statements :
59+
- **Name**: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn` and **Value**: `user.login`
60+
- **Name**: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` and **Value**: `user.email`
61+
- **Name**: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name` and **Value**: `user.displayName`
62+
63+
And for Group Attribute Statements
64+
- **Name**: `groups` and **Filter**: `Matches regex:.*` (Adapt the filter if you want to be more specific)
65+
66+
Click `Next`{.action}.
67+
68+
![Add SAML application, step 5](images/OKTA_add_application_step5.png){.thumbnail}
69+
70+
In the "Feedback" step, select the according option and click `Finish`{.action}.
71+
72+
Then open the application and go to the "Assignments" tab and assign users or groups to the application.
73+
74+
![Assign users](images/OKTA_add_user.png){.thumbnail}
75+
76+
Before going to the next section, go to the "Sign On" tab, and access to the **Metadata URL** and save the provided XML file
77+
78+
![Retrieve metadata](images/OKTA_retrieve_metadata.png){.thumbnail}
79+
80+
Your Okta service now trusts OVHcloud as a service provider. The next step is to ensure that the OVHcloud account trusts your Okta as an identity provider.
81+
82+
### Registering Okta into the OVHcloud account and configuring the connection
83+
84+
To add Okta as a trusted identity provider, you need to provide the identity provider metadata in the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.co.uk/&ovhSubsidiary=GB).
85+
86+
Once logged in, click your profile at the top right.
87+
88+
![Top menu OVHcloud](images/ovhcloud_top_menu.png){.thumbnail}
89+
90+
Click on your name to access your profile management page.
91+
92+
![OVHcloud User Information](images/ovhcloud_user_infos.png){.thumbnail}
93+
94+
Open the `User Management`{.action} tab.
95+
96+
![OVHcloud menu profile](images/ovhcloud_profile_menu.png){.thumbnail}
97+
98+
Click the `SSO connection`{.action} button.
99+
100+
![OVHcloud SSO connection step 1](images/ovhcloud_user_management_connect_sso_1.png){.thumbnail}
101+
102+
Fill in the XML metadata of your Okta service. Enter `groups` as the "Group Attribute Name". Click `Confirm`{.action}.
103+
104+
![OVHcloud SSO connection step 2](images/ovhcloud_add_federation.png){.thumbnail}
105+
106+
Now you need to retrieve your Okta as identity provider, as well as default groups.
107+
108+
![OVHcloud SSO connection step 3](images/ovhcloud_add_federation_success.png){.thumbnail}
109+
110+
For more information, click on the link under “SSO Service URL”.
111+
112+
![OVHcloud SSO connection step 4](images/ovhcloud_idp_details.png){.thumbnail}
113+
114+
The `...`{.action} button allows you to update or delete the SSO, and view its details.
115+
116+
![OVHcloud SSO connection step 5](images/ovhcloud_user_management_connect_sso_5.png){.thumbnail}
117+
118+
Your Okta service is now considered a trusted identity provider. However, you still need to add groups to your OVHcloud account.
119+
120+
> [!warning]
121+
> If you try to connect via SSO at this point, you will probably receive a `Not in valid groups` error message.
122+
>
123+
> That is because your OVHcloud account checks whether the authenticating user belongs to an existing group on the account.
124+
>
125+
126+
You must then assign **roles** to Okta user groups at OVHcloud. Otherwise, your OVHcloud account does not know what the user is allowed to do and, by default, no rights are assigned.
127+
128+
From the OVHcloud Control Panel, add a group by clicking the `Declare a group`{.action} button and filling in the fields:
129+
130+
- **Group name**: Group name within Okta
131+
- **Role**: Level of rights granted to this group
132+
133+
![Okta User Management Groups](images/ovhcloud_user_management_groups_1.png){.thumbnail}
134+
135+
![Okta User Management Groups](images/ovhcloud_user_management_groups_2.png){.thumbnail}
136+
137+
You can then verify that the group is added to your OVHcloud account in the "Groups" section:
138+
139+
![Okta User Management Groups](images/ovhcloud_user_management_groups_3.png){.thumbnail}
140+
141+
When you later log in with a user from the **Intern** group, your OVHcloud account will recognise that the user has the role "UNPRIVILEGED" specified by his group.
142+
143+
You will then be able to log out of your account and log back in with your Okta as an identity provider.
144+
145+
### Connecting via SSO
146+
147+
On [the OVHcloud login page](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.co.uk/&ovhSubsidiary=GB), enter your [login](https://docs.ovh.com/gb/en/customer/create-ovhcloud-account/#what-is-my-nic-handle) followed by **/idp** without a password and click the `Login`{.action} button.
148+
149+
![Connection to OVHcloud federation](images/ovhcloud_federation_login_1.png){.thumbnail}
150+
151+
You are then redirected to your Okta login page. Enter the login and password for a user of your Okta, then click the `Sign in`{.action} button.
152+
153+
![OVHcloud Federation login Redirection Okta](images/OKTA_login.png){.thumbnail}
154+
155+
You are now logged in with the same customer ID, but through your Okta user.
156+
157+
![OVHcloud User Info Federation](images/ovhcloud_user_infos_federation.png){.thumbnail}
158+
159+
## Go further
160+
161+
[Creating an OVHcloud account](https://docs.ovh.com/gb/en/customer/create-ovhcloud-account/)
162+
163+
[Securing my OVHcloud account and managing my personal information](https://docs.ovh.com/gb/en/customer/all-about-your-username/)
164+
165+
[Setting and managing your account password](https://docs.ovh.com/gb/en/customer/manage-password/)
166+
167+
[Securing your OVHcloud account with two-factor authentication](https://docs.ovh.com/gb/en/customer/secure-account-with-2FA/)
168+
169+
Join our community of users on <https://community.ovh.com/en/>.
43.7 KB
Loading
75.5 KB
Loading
39 KB
Loading
74 KB
Loading
51.3 KB
Loading
77.7 KB
Loading
14.4 KB
Loading
117 KB
Loading
83.4 KB
Loading

0 commit comments

Comments
 (0)