|
| 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 | +{.thumbnail} |
| 42 | + |
| 43 | +Click `Create App Integration`{.action} and select `SAML 2.0`{.action}. |
| 44 | + |
| 45 | +{.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 | +{.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 | +{.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 | +{.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 | +{.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 | +{.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 | +{.thumbnail} |
| 89 | + |
| 90 | +Click on your name to access your profile management page. |
| 91 | + |
| 92 | +{.thumbnail} |
| 93 | + |
| 94 | +Open the `User Management`{.action} tab. |
| 95 | + |
| 96 | +{.thumbnail} |
| 97 | + |
| 98 | +Click the `SSO connection`{.action} button. |
| 99 | + |
| 100 | +{.thumbnail} |
| 101 | + |
| 102 | +Fill in the XML metadata of your Okta service. Enter `groups` as the "Group Attribute Name". Click `Confirm`{.action}. |
| 103 | + |
| 104 | +{.thumbnail} |
| 105 | + |
| 106 | +Now you need to retrieve your Okta as identity provider, as well as default groups. |
| 107 | + |
| 108 | +{.thumbnail} |
| 109 | + |
| 110 | +For more information, click on the link under “SSO Service URL”. |
| 111 | + |
| 112 | +{.thumbnail} |
| 113 | + |
| 114 | +The `...`{.action} button allows you to update or delete the SSO, and view its details. |
| 115 | + |
| 116 | +{.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 | +{.thumbnail} |
| 134 | + |
| 135 | +{.thumbnail} |
| 136 | + |
| 137 | +You can then verify that the group is added to your OVHcloud account in the "Groups" section: |
| 138 | + |
| 139 | +{.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 | +{.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 | +{.thumbnail} |
| 154 | + |
| 155 | +You are now logged in with the same customer ID, but through your Okta user. |
| 156 | + |
| 157 | +{.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/>. |
0 commit comments