An auth system determines how users can sign in to Astro Private Cloud. By default, Astro Private Cloud allows users to create an account and authenticate using one of the following methods:
Integrating an external identity provider (IdP) greatly increases the security of your platform. When you integrate your IdP into Astro Private Cloud:
In addition to the default methods, Astronomer provides the option to integrate any IdP that follows the Open Id Connect (OIDC) protocol. This includes (but isn’t limited to):
After you integrate your IdP, you can invite users that already have an account on your IdP to Astro Private Cloud. For a more advanced integration, you can configure SCIM so that you can manage users directly from your IdP and import batches of users into Astro Private Cloud as Teams.
App Registrations on AzureIn Microsoft Entra ID, click App registrations > New registration.
Complete the following sections:
Name: Any
Supported account types: Accounts in this organizational directory only (Astronomer only - single tenant)
Redirect URIs:
https://houston.BASEDOMAIN/v1/oauth/redirect/.https://houston.BASEDOMAIN/v1/oauth/callback/.Replace BASEDOMAIN with your own. For example, if your base domain is example.com, your redirect URIs should be https://houston.example.com/v1/oauth/redirect/ and https://houston.example.com/v1/oauth/callback/.
Click Register.
Click Authentication in the left menu.
In the Web area, confirm the redirect URI is correct.
In the Implicit grant and hybrid flows area, select Access tokens and ID tokens.
Click Save.

Complete this setup only if you want to import Microsoft Entra ID groups to Astro Private Cloud as Teams.
In your Microsoft Entra ID application management left menu, click Certificates & secrets.
Click New client secret.
Enter a description in the Description field and then select an expiry period in the Expires list.
Click Add.
Copy the values in the Value and Secret ID columns.
Click API permissions in the left menu.
Click Microsoft Graph and add the following minimum permissions for Microsoft Graph:
email
Group.Read.All
openid
profile
User.Read
For each of these permissions, select Grant Admin Consent for Astronomer Data. Your Microsoft Graph permissions should look similar to the following image:

Click Token configuration in the left menu.
Click Add groups claim and select the following options:
Click Add.
Base64 encode the client secret retrieved from Microsoft with Linux or macOS terminal with the following command:
Create a Kubernetes Secret in the astronomer Namespace, or whichever Namespace where the APC API is deployed, using the following YAML as an example:
kubectl apply -n astronomer -f <filename>.yamlAdd the following values to your values.yaml file:
Then, push the configuration change to your platform. See Apply a config change.
Integrating an external identity provider with Astro Private Cloud requires that the platform’s APC API component is able to make outbound HTTPS requests to those identity providers in order to fetch discovery documents, sign keys, and ask for user profile information upon sign-in or sign-up.
If your install is configured without a direct connection to the internet you will need to configure an HTTPS proxy server for the APC API.
To configure the proxy server used we need to set the GLOBAL_AGENT_HTTPS_PROXY Environment Variable for the APC API deployment.
To do so, add the following to the APC API section of the values.yaml file in your astronomer directory:
Then, push the configuration change to your platform as described in Apply a config change.
You can set up a custom OAuth authorization flow as an alternative to Astro Private Cloud’s default implicit flow. You can customize Astronomer’s existing Okta, Google, and GitHub OAuth flows or import an entirely custom OAuth flow.
To use a custom OAuth authorization code flow:
In your values.yaml file, set the astronomer.houston.config.auth.openidConnect.flow value to "code":
Configure the section of your values.yaml file specific to your identity provider with each of the following values:
enabled: Set this value to true under the section for your own identity provider.
clientId: Your Client ID and Client secret
discoveryURL: Your base Discovery URL
authUrlParams: Additional parameters to append to your discovery URL. At a minimum, you must configure audience. Refer to your identity provider’s documentation for information on how to find this value (Auth0 maintains this information in their glossary, for example).
For example, a custom configuration of Okta might look like the following.
To finalize your configuration, configure the following key values in your identity provider’s settings:
https://houston.<BASE_DOMAIN>/v1/oauth/callback/. Be sure to include the trailing /.When you complete this setup, you should be able to see the differences in sign-in flow when signing in at <BASE_DOMAIN>.astronomer.io:

You can see the name you configured in AUTH__OPENID_CONNECT__CUSTOM__DISPLAY_NAME when authenticating using the Astro CLI.
Astro Private Cloud supports integration with the open standard System for Cross-Domain Identity Management (SCIM). Using the SCIM protocol with Astro Private Cloud allows you to automatically provision and deprovision users and Teams based on templates that define permission and accesses. It also centralizes user management so that you can configure Astro Private Cloud user permissions directly from your identity provider (IdP).
In Okta Admin dashboard, go to Applications > Applications.
Click Browse App catalog
Search for SCIM 2.0, then select the option that includes Basic Auth. The configuration page for the SCIM integration appears.
Complete the General Settings page, then click Next.
Complete the Sign-On Options page and click Done.
Return to the Applications menu and search for the integration you just created. Click the integration to open its settings.
Click Provisioning, then click Configure API integration.
Tick the Enable API integration checkbox, then configure the following values:
https://astro-apc-host/v1/scim/v2/okta<your-provisioning-account-username><your-provisioning-account-password>Click General, then click Edit. Give your application a name and configure any other required general settings.
Go to Push Groups page and create a rule for Group Push. See Group Push.
On the Assignments tab, ensure that the right users and groups in your org are assigned to the app integration. See Use the Assign Users to App action.
Follow the steps in Store and encrypt identity provider secrets to store your provisioning account credentials as a Kubernetes secret. Make sure to Base64 encode the credentials, as it is a requirement for Kubernetes secrets. This can be done using the Linux or macOS terminal with echo '<your-provisioning-account-username>:<your-provisioning-account-password> | base64. Your secret configuration should look similar to the following:
Add the following lines to your values.yaml file:
Push the configuration change. See Apply a config change.
See Add SCIM provisioning to app integrations for more information about configuring SCIM within Okta.