Configure an identity provider


You can configure Microsegmentation Console to authenticate users against any OpenID Connect (OIDC) identity provider. Examples include Google, Okta, Azure Active Directory, Yahoo, Auth0, and many others.
Integration with an OIDC identity provider gives your users single sign-on access to the Microsegmentation Console.
Microsegmentation uses the OIDC authorization code flow with a confidential client, [as described in the OIDC 1.0 specification](
You can use [scopes]( to request basic information about the user from the identity provider. If the user consents to the requested scopes, the identity provider returns the information to Microsegmentation as claims in an [ID token]( The claims in the ID token allow you to control which users can gain access.
All identity providers should support the following list of scopes and claims.
Each identity provider supports additional scopes and claims. Refer to the documentation of the identity provider to learn more. Request only scopes that return claims as string, array, or boolean values. Microsegmentation ignores other types of claim values.
The OIDC sequence requires a browser and is not suitable for authenticating applications.

Before you begin

Familiarize yourself with the following sequence, particularly the bolded URLs. Hover over the numbers for additional details.
Once the user obtains an Microsegmentation token containing the claims from the identity provider, they can use it to access:
  • Microsegmentation Console web interface
Microsegmentation checks the policy you’ve defined against the claims in the Microsegmentation token to determine whether to allow the user access.

Adding Microsegmentation to the identity provider

While OIDC is a standard, each identity provider provides a different web interface. This section guides you through the setup at a high level.
Many identity providers orient their offerings towards developers. Good news! With Microsegmentation, you won’t need to write any code to integrate with the identity provider.
  • Web application
    : Identity providers often support a variety of application types. If prompted, select web application.
  • Callback URLs
    : Supply the identity provider with the following list of allowed callback URLs. Identity providers sometimes refer to these as redirect URIs or login redirect URIs.
  • Client ID and client secret
    : The identity provider supplies a client ID and a client secret value. These values allow Microsegmentation to communicate with the identity provider. Store these values in a safe place. You’ll need them in subsequent procedures.
  • Scopes
    : Though Microsegmentation sends the desired scopes in its request, some identity providers may ask you to identify the scopes during the configuration. If so, supply the scopes to the identity provider. For a detailed discussion of scopes, refer to the Overview.

Confirming the identity provider’s discovery endpoint

Most identity providers offer a discovery endpoint, although this is optional in the specification. Microsegmentation requires the discovery endpoint. Confirm that your identity provider supports it as follows.
  1. Obtain the identity provider’s URL. Your identity provider should make this value easy to obtain, but we provide some tips below.
    All clients use the same path.
    Microsoft Azure Active Directory
    The base URL is the same as the path in your browser when you access your account, without the -admin string. For example, if I access my Okta account at, my base URL is Append /oauth2 to the base URL. Then append the ID of your authorization server. If you have an Okta developer account, the ID is probably /default
  2. Set an environment variable containing the identity provider’s URL. An example follows. Replace <identity-provider-url> with the identity provider’s URL before issuing the command.
    export IDP_URL=<identity-provider-url>
  3. Check if your identity provider supports the discovery endpoint by issuing the following command.
    curl $IDP_URL/.well-known/openid-configuration
    If you don’t have curl installed, try replacing curl with wget.
  4. Confirm that the command returns the JSON details of the identity provider’s configuration.

Adding the identity provider to Microsegmentation

  1. In the Microsegmentation Console web interface, expand
    Authentication Sources
    and select
    OIDC Providers
  2. Click the
    button to add a new identity provider.
  3. Type the name of the identity provider in the
    If you have more than one identity provider, users must manually type this name to identify their identity provider. It is case sensitive.
  4. In the
    field, add the identity provider’s URL. If you completed the steps in Confirming the identity provider’s discovery endpoint, you can retrieve this value via echo $IDP_URL
  5. Paste the client secret in the
    Client Secret
    field and the client ID in the
    Client ID
  6. Type the requested scopes in the
    field, pressing ENTER after each one. At a minimum, you must have openid. If the identity provider supports refresh tokens and you would like to enable this feature, also include the offline_access scope. For more detail on scopes, refer to the Overview. These will allow you to identify the user and determine whether or not to authorize them.
  7. To set this as the default identity provider, select
    Use this provider as the default
    We recommend setting at least one identity provider as the default.
  8. To add values of claims to the subject field of the Microsegmentation token, type the name of the scope in the
    field, pressing ENTER after each one.
    Examples follow.
    Adds the user’s last name to the Microsegmentation token.
    Adds the user’s email address to the Microsegmentation token.
    Adds the value for the groups claim to the Microsegmentation token. The type of value returned by the identity provider varies. Configure your identity provider to return an array or a string, as Microsegmentation ignores booleans.
    Not available from all identity providers.
  9. Click

Creating an API authorization

  1. Expand
    Namespace Settings
    , click
    , and click the
  2. Type a name for the policy.
  3. If you want the user to have access to all of the children of the current namespace, select
    Propagate to child namespaces
  4. If you do not want this policy to be visible in the child namespaces, select
    Hide propagation to child namespaces
  5. Type @auth:realm=oidc in the
    field and press ENTER.
    Then type the Microsegmentation tag that defines the value of the claim that must appear in the user’s Microsegmentation token. Some examples follow.
    Identity provider
    Scope requested
    Example claim key or value
    Microsegmentation tag
    Microsoft Azure Active Directory
    Microsoft Azure Active Directory
    You can include multiple tags connected by AND or OR to form a logical expression.
  6. Select the namespace that you want to allow the user to access from the
    Target Namespace
    list box.
  7. Click
  8. If you want to require the user to attempt their login from a certain subnet or subnets, specify the subnet or subnets in the
    List of authorized subnets
  9. Click
  10. Select the roles that the user should have.
  11. Click
  12. Congratulations! The user should now be able to click
    Sign in with OIDC
    to access the Microsegmentation Console web interface and use apoctl auth oidc to log into apoctl.

Recommended For You