Skip to content

Setting up SSO

Info

Learn the concepts and fundamentals of instances in the Explanation page.

Single Sign-on (SSO) supports integrating authentication for your Nextmv accounts with a SSO provider using SAML. Nextmv supports the following Identity Providers (IDP):

Use the SSOConfiguration.new method to set up SSO configuration for your Nextmv organization.

import os

from nextmv import cloud
from nextmv.cloud import SSOConfiguration

client = cloud.Client(api_key=os.getenv("NEXTMV_API_KEY"))
SSOConfiguration.new(
    client=client,
    metadata_url="<METADATA_URL>",
    enabled=True,
    allow_non_domain_users=True,
)
uv run main.py

Using enabled=True will create the SSO configuration and enable it. You can also use the following methods to manage SSO enablement:

Go the reference section to see all the available parameters for each method under the SSOConfiguration class.