- Nebius AI Cloud, where you create and configure a federation.
- Keycloak, where you create a client, make it available to the users for whom you configure SSO, and connect the client to the federation.
Costs
This tutorial doesn’t include any chargeable resources. The infrastructure you create is free of charge.Prerequisites
- Deploy and configure a Keycloak server.
-
Make sure that your Nebius AI Cloud account is added to the tenant’s group of administrators. To check this, in the web console, go to
Administration → IAM → Users.
- If you prefer not to use the web console, prepare one of the other available Nebius AI Cloud interfaces:
Steps
Create a client in Keycloak
- Open the Keycloak admin console.
-
Create a client:
- In the admin console, go to Clients and click Create client.
-
On the General settings step, specify the following required parameters:
- Client type:
SAML - Client ID:
https://auth.eu.nebius.com/saml2/rp/federation-id
- Client type:
-
Valid redirect URIs:
https://auth.nebius.com/login/saml2/provider/federation-idfederation-idis used temporarily until you create a federation and get its ID. After that, replacefederation-idwith the actual value.
-
Open the newly created client, go to the SAML capabilities section in the Settings tab and specify the following parameters:
- Force POST binding:
On - Include AuthnStatement:
On
- Force POST binding:
-
In the Signature and Encryption section, specify the following parameters:
- Sign documents:
On - Signature algorithm:
RSA_SHA256
- Sign documents:
Download the SAML metadata file from Keycloak
- Go to the Realm settings section in the Keycloak admin console.
- On the General tab, find the Endpoints section and click SAML 2.0 Identity Provider Metadata.
- In the browser tab that opens, save the XML file with metadata (for example, by using Command + S on macOS or Ctrl + S on Windows).
Create a federation in Nebius AI Cloud
-
To create a federation:
- Web console
- CLI
- Terraform
-
In the sidebar, go to
Administration → IAM.
- Click Create entity and select Federation.
- Enter your federation name and click Upload file.
- Select the XML file you saved in the previous step and click Continue.
- Enter a name for your certificate in the Certificates section and click Create federation. Copy the ID of the newly created federation.
-
Update the SSO settings of your client in the Keycloak admin console:
- Go to Clients and open your client page.
- On the Settings tab, find the Client ID and Valid redirect URIs fields and replace the
federation-idpart of the values with the copied federation ID.
Add a certificate to the federation
If you used the web console to create a federation, you can skip this part and proceed to the next step.
- CLI
- Terraform
-
Prepare the
federation-cert.jsonfile:Specify the federation ID and the certificate body from the downloaded XML file. In this file, the certificate body is stored in theX509Certificateelement. Paste it as a single line tofederation-cert.json. -
Apply the certificate file:
Log in to Nebius AI Cloud
- Open the Nebius AI Cloud web console.
- Click the Get started with SSO button.
- Enter the federation ID and click the Sign in button.
-
In the Contact details window that opens:
- Specify your name and email.
- Confirm that you agree with the Nebius AI Cloud Terms of Use.
- Click the Continue button.
Assign administrator rights for the new account
After your first login to the new federation, a new user account is created in the tenant. To complete the setup and grant the new user account access to the platform, add it to a group with admin rights in Nebius AI Cloud:- Log out of your new account in the web console.
- Log in to your main Nebius AI Cloud account.
- Go to
Administration → IAM → Users and add the new user to the relevant admin group.