Okta Authentication
Graylog provides Okta authentication as a possibility for single sign-on (SSO) for your organization. You can synchronize Okta group members to teams in Graylog. If you are using Okta and have already authenticated yourself on the external Okta site, Graylog can use the same session and will not prompt you to re-authenticate if you enable third-party cookies in your browser.
This article describes the steps to take to set up Okta authentication in Graylog, including group synchronization.
The following article exclusively pertains to a Graylog Enterprise feature or functionality. To learn more about obtaining an Enterprise license, please contact the Graylog Sales team.
Prerequisites
Before proceeding, ensure that the following prerequisites are met:
-
You must be a Graylog administrator to enable authentication with Okta.
-
You must have an Okta account and credentials.
Set Up Okta Authentication
The process for setting up authentication with Okta involves configuration both in the Graylog web interface and in your Okta admin dashboard. The basic steps are:
-
Begin server configuration in the Graylog web interface.
-
Complete the Okta connection in the Okta Admin Console.
-
Complete server configuration in the Graylog web interface.
-
(optional) Complete group synchronization in the Graylog web interface.
-
Activate the new service in Graylog.
Each of these steps is described in detail below.
Begin Server Configuration
Complete these steps in the Graylog web interface.
- Navigate to System > Authentication.
- Click Create Service.
- Select Okta from the drop-down menu, then click Get Started.
- Fill out the following fields in the form:
Field Description Title
Name the service.
Description (Optional) Add a description.
Okta Base URL
Add the root URL of the Okta client, for example:
https://<your-subdomain>.okta.com
(Issuer URL of the Okta application)Callback URL
Enter the Graylog URL that Okta redirects back to after authentication. It could be the base URL of your Graylog environment or a custom server configured for Okta sessions.
You need to enter this information in the next section as well.
Okta Configuration
The following steps must be completed in your Okta Admin Console.
- Log in to your Okta admin dashboard.
- Click Applications under Applications in the left menu
- Click Create App Integration, which opens the Create a new app integration dialog.
- Select OIDC - OpenID Connect.
- Select Web Application, then click Next.
- Enter a name in the App Integration Name field on the New Web App Integration form.
- Ensure that the following options are selected:
- Client Credentials
- Authorization Code
- Refresh Token
- Add your callback URL to the Sign-in redirect URIs. This information is obtained from Graylog during the authentication service setup in the previous section.
- Under assignments, select Allow everyone in your organization to ensure the appropriate level of access.
- Click Save to return to the Applications page.
- Save the Client ID and Client secret. You need these values to complete the Okta authentication form in Graylog in the next section.
Graylog UI Server Configuration
You complete the following steps back in the Graylog web interface.
- Return to the Create Okta Authentication Service form.
- Finish the Server Configuration form:
Field Description OAuth Client ID Enter the secret value from the Applications section in Okta. OAuth Client Secret Enter the password associated with this Client ID from the Applications section (Okta). Token Verifier Connect Timeout Determine the time interval in seconds until connection resets. We recommend the default value of 10
for this field.Default Roles Set the Graylog user roles you want to delegate through this synchronization. Any roles you include are assigned to all synchronized users.
The default role populates as Reader, which is the basic level of access needed for most Graylog users and is therefore the recommended selection.
- Click Test Server Connection to validate the configuration. This test allows Graylog to perform a basic consistency and connectivity check of the configuration. Any errors detected are noted in the UI and must be resolved in order to proceed.
- Click Finish & Save Service to complete the configuration steps and return to the All Authentication Services page. Or, optionally, click Next: Group Synchronization if you intend to use the groups feature.
Group Synchronization
In addition to individual users, Okta integration can be used to synchronize Okta groups to Graylog teams. To set up this synchronization, you need access to both Okta and the Graylog web interface.
Okta Configuration for Groups
The first part of group configuration is completed in your Okta Admin Console.
- Navigate to the Okta dashboard.
- Click API under Security in the left menu.
- Click the Token tab.
- Click the Create Token button to open the Create Token dialog.
- Enter a name in the field What do you want your token to be named?.
- Click Create Token to generate the token string (Token Value).
- Click the copy/paste button or save the token string. You need to enter this string into Graylog in the next section.
Graylog Group Synchronization
These remaining steps are completed in the Graylog web interface, and continue from the previous server configuration steps above.
On the Group Synchronization tab:
- Select the Synchronize Groups check box to enable group synchronization.
- Paste the token string into the Okta API Token field.
- Click Load matching groups to view the full list of group members from Okta.
- Choose the Selection type:
- All groups: Imports all groups matched in the previous step.
- Include selected: Imports only groups selected in the list returned in the previous step.
- Exclude selected Imports only groups not selected in the list returned in the previous step.
- Click Finish & Save Service to complete the configuration steps and return to the All Authentication Services page.
Activation and Sign On
After you configure the service, activate your current service provider to enable the authentication protocol.
-
Click the Authentication Services tab to return to the All Authentication Services page.
-
Click Activate in the Actions column for the service you want to activate.
If you change service providers or need to update your settings, be sure to activate the new service from this menu.
After you set up your identity provider authentication with Graylog, a new log-in page appears when you log out to start a new Graylog session. To get to this screen:
- Log out of Graylog. A login page with the text "Login with default method" appears.
- Log in to Graylog with your identity provider credentials to authenticate as a new delegated group member.
Troubleshooting and Common Issues
The following section outlines troubleshooting steps for common issues to assist you in resolving potential challenges you may encounter.
Issue: Title Issue
[Write a brief description that helps readers identify this issue.]
Solution: Title Solution
[Provide guidance to resolve the issue, which may include troubleshooting steps, tips for prevention, or methods for quick resolution. This guidance can be granular or general depending on how easily the issue may be resolved.]
Another Issue: Title Issue
[Describe another potential issue.]
Another Solution: Title Solution
[Provide guidance to resolve the issue, which may include troubleshooting steps, tips for prevention, or methods for quick resolution. This guidance can be granular or general depending on how easily the issue may be resolved.]
Further Reading
Explore the following additional resources and recommended readings to expand your knowledge on related topics:
[LEAVE BLANK.]