Configure an identity provider
Overview
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](https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth).
You can use [scopes](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) 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](https://openid.net/specs/openid-connect-core-1_0.html#IDToken).
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.
- https://<your-console-domain>/popup/oidc-verify: replace <your-console-domain> with the domain name of your Microsegmentation Console
- 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.
- Obtain the identity provider’s URL. Your identity provider should make this value easy to obtain, but we provide some tips below.ProviderExampleDiscussionOktaThe 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 https://dev-289699-admin.okta.com, my base URL is https://dev-289699.okta.com. 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
- 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>Check if your identity provider supports the discovery endpoint by issuing the following command.Confirm that the command returns the JSON details of the identity provider’s configuration.
- In the Microsegmentation Console web interface, expandAuthentication Sourcesand selectOIDC Providers.
- Click theCreatebutton to add a new identity provider.
- Type the name of the identity provider in theNamefield.If you have more than one identity provider, users must manually type this name to identify their identity provider. It is case sensitive.
- In theEndpointfield, 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
- Paste the client secret in theClient Secretfield and the client ID in theClient IDfield.
- Type the requested scopes in theScopesfield, 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.
- To set this as the default identity provider, selectUse this provider as the default.We recommend setting at least one identity provider as the default.
- To add values of claims to the subject field of the Microsegmentation token, type the name of the scope in theSubjectfield, pressing ENTER after each one.Examples follow.ScopeClaimDescription1Not available from all identity providers.
- ClickCreate.
- ExpandNamespace Settings, clickAuthorizations, and click theCreatebutton.
- Type a name for the policy.
- If you want the user to have access to all of the children of the current namespace, selectPropagate to child namespaces.
- If you do not want this policy to be visible in the child namespaces, selectHide propagation to child namespaces.
- Type @auth:realm=oidc in theSubjectfield 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 providerScope requestedExample claim key or valueMicrosegmentation tagMicrosoft Azure Active DirectoryMicrosoft Azure Active DirectoryYou can include multiple tags connected by AND or OR to form a logical expression.
- Select the namespace that you want to allow the user to access from theTarget Namespacelist box.
- ClickNext.
- If you want to require the user to attempt their login from a certain subnet or subnets, specify the subnet or subnets in theList of authorized subnetsfield.
- ClickNext.
- Select the roles that the user should have.
- ClickCreate.
- Congratulations! The user should now be able to clickSign in with OIDCto access the Microsegmentation Console web interface and use apoctl auth oidc to log into apoctl.
Adding the identity provider to Microsegmentation
Creating an API authorization
Most Popular
Recommended For You
Recommended Videos
Recommended videos not found.