Integrating Micetro with Okta can simplify the authentication process by providing multi-factor authentication (MFA) and single sign-on (SSO) functionalities. After configuration, Micetro’s login page will display a button that, when selected, directs users to Okta’s authentication URL, where they can complete the authentication process using their Okta credentials and access Micetro without needing to enter their login credentials repeatedly.
Prerequisites
Before setting up Okta authentication, make sure that the following prerequisites are met:
- SSO and MFA are configured in Okta.
- Micetro Central must have internet access to Okta’s endpoints:
*.okta.com
- Python with dependent libraries are installed on the Micetro Central server.
- Python 3.8 or newer required.
- okta_jwt_verifier >=0.2.3 — Verifies Okta access and ID tokens - okta-jwt-verifier · PyPI
- requests — https://pypi.org/project/requests/
Installation and configuration must be performed on ALL Micetro Central servers in your environment.
Installing and setting up Okta
To begin the configuration process, you need to set up an application within Okta. This step will provide the necessary properties required for configuration.
To set up the application:
- In the Okta Admin Console, go to Applications in the navigation menu and select Applications.
- Select Create App Integration.
- In the Create a new app integration dialog, select OIDC - OpenID Connect as the Sign-in method.
- Select Web Application as Application type. Then select Next.
- In the New Web App Integration form, enter the required
information, including the following:
- In the General Settings, set the Grant type
to Authorization Code.Note: Proof Key for Code Exchange (PKCE) is required with the Authorization Code in order to secure public clients against authorization code interception.
- In Sign-in redirect URIs, enter http://micetro-central-fqdn/mmws/auth_cb/okta.
- In Sign-out redirect URIs enter http://micetro-central-fqdn/.
- In the General Settings, set the Grant type
to Authorization Code.
- Save the new app integration.
- In the list on the Applications page, select the new app integration to open it.
- In the Client Credentials section of the
General tab, make sure that the following are
selected:
- Client secret must be selected for Client authentication.
- Require PKCE as additional verification
- On the Sign On tab, make sure OpenID Connect is
selected as the sign-on method.
- In the OpenID Connect ID Token section, make sure the Issuer and Audience values are set.
- To enable the mapping of group membership from Okta, there must be a Token Claim with the name “Groups”. To integrate this claim, open the Legacy configuration section and select Expression as the Groups claim type. In the Groups claim expression field, enter the name "Groups" and set the value as the .* regex.
- On the Assignments tab, make sure that the
People and Groups assigned to
the application match the configuration in Micetro. Users that correspond to groups listed in Okta, both
Active Directory (AD) and internal groups (excluding built-in) groups, are
automatically added to groups within Micetro. Conversely, users are removed from groups in Micetro if their names do not match those listed in
Okta. If Okta does not provide any groups, the user’s group membership remains
unchanged.Note: Under or Groups, make sure to add the relevant individuals and groups that match the configuration in Micetro. For instructions on adding groups to Micetro, refer to Adding groups.
- On the Okta API Scopes tab, check that the
okta.groups.readscope is granted.Note: This may not be necessary, since you also create a groups claim in the JWT. - Navigate to and select the Edit button for the Authorization Server with the name default.
- On the Scopes tab, select Add Scope.
- In the Add Scope dialog, add the groups claim. Note: Make sure the Set as a default scope and Include in public metadata checkboxes are not checked.
- On the Claims tab, select Add claim.
- In the Add Claim dialog, add the groups claim with the
following settings:
- Set the Include in token type fields to ID Token Always.
- Use the Value type dropdown to select Groups.
- Set the Filter to only include groups that meet the condition: Matches regex with the value .*
- Set the Include in field to Any scope.
- Also add the groups claim to the access token by repeating the previous step but selecting Access Token as the Include in token type value.
- On the Access Policies tab, select Add rule.
- Add a rule for Any scopes that can be used by All clients.
Configuring the Micetro Central server
- Install Python and dependent libraries and packages on the Micetro Central
server.
- When installing Python, ensure the following:
-
- Python is available to “all user” (Windows)
- That you are using a ratified (tested by BlueCat) version of Python (refer to the Prerequisites )
- Python version 3.8 or newer is installed in the “Default” environment
- Confirm that there is a directory called “extensions” in the Micetro Central data directory and that it contains a Python script named mm_auth_cb.py and a signature file. This Python script handles the authentication callback from the external provider. The same script serves both providers. The directory and files are created during the installation of Micetro Central.
Configuring Okta authentication in the Micetro Web Application
After completing the setup in Okta, the next step is to configure authentication in Micetro by entering the necessary information obtained during the application setup process. Once you have saved the configuration in the Web Application, Micetro tests the integration with Okta to make sure it's working properly.
To configure and test the authentication:
- On the Admin page, select the Configuration tab.
- Select Authentication under System settings in the left sidebar.
- Make sure the Enable external login providers checkbox is selected.
- Select Configure and then select Okta in the dropdown.
- Complete the configuration form with the information collected during the Okta
setup process.
- Domain: The domain of your Okta organization.
- Server ID: The unique identifier for your Okta authorization server.
- Client ID: A public identifier for your application, generated when you register your application with Okta.
- Client secret: A confidential string known only to the application and the authorization server. It’s used to authenticate the identity of the application to Okta when requesting tokens. The client secret should be kept secure and not shared publicly.
- Redirect URI: This should match the redirect UI configured in Okta.
- Scope (optional): Scopes define the level of access that the client application is requesting from the user during the authentication process.
- Audience URI: Specifies the intended recipient of the access token.
- When completed, select Save and test. Micetro will attempt to authenticate via the service and display a success message or a log explaining any failures encountered during the process.
- (Optional) If you want to provide only SSO/MFA login, you can disable the
internal login method. This will remove the local login from the Micetro login page. However, you can still bypass
this restriction at login. The internal login method can be found by selecting
Log in with Micetro in the bottom left corner of the
login page.
For more information about login options in Micetro, refer to the Authentication section of the system settings.
User authentication and access management
When a users first logs into Okta after Okta authentication is configured in Micetro, a new "External" user account is created in Micetro. By default, all external users are automatically added to the "All users (built-in)" group. If group memberships are included in the properties returned by Okta, Micetro adds users to groups with matching names.
Micetro ensures synchronization of several key properties including email, full name, and group memberships by matching the external ID. Any external changes to these properties are updated in Micetro upon subsequent logins.
Failure to grant privileges for these new external accounts will result in an error for the user.
Configure Okta authentication by editing the configuration file manually
Instead of configuring Okta authentication in the Micetro Web Application, it's possible to manually configure external authentication by creating a JSON configuration file in Micetro Central’s data directory. The structure of the JSON object inside the configuration file is unique for each customer depending on the identity solution being configured.
For more information on configuring external authentication manually, refer to the documentation about single sign-on and multi-factor authentication for version 10.3 .