website/integrations/infrastructure/semaphore/index.mdx
Semaphore UI is a modern web interface for managing popular DevOps tools.
This guide explains how to configure Semaphore UI to use authentik as the OAuth provider for logging in to the Web GUI.
The following placeholders are used in this guide:
semaphore.company is the FQDN of the Semaphore installation.authentik.company is the FQDN of the authentik installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
To support the integration of Semaphore with authentik, you need to create an application/provider pair in authentik.
Log in to authentik as an administrator and open the authentik Admin interface.
Navigate to Applications > Applications and click Create with Provider to create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)
Strict redirect URI to https://semaphore.company/api/auth/oidc/authentik/redirect.Click Submit to save the new application and provider.
Log in to your Semaphore UI host via SSH. Edit the /etc/semaphore/config.json file with the text editor of your choice.
Add the oidc_providers configuration:
{
"oidc_providers": {
"authentik": {
"display_name": "Sign in with authentik",
"provider_url": "https://authentik.company/application/o/<application_slug>/",
"client_id": "<client-id>",
"client_secret": "<client-secret>",
"redirect_url": "https://semaphore.company/api/auth/oidc/authentik/redirect",
"username_claim": "username",
"name_claim": "name",
"email_claim": "email",
"scopes": ["openid", "profile", "email"]
}
},
...
}
:::info
The name of the oidc_provider (e.g. authentik) needs to match the name on the redirect URL.
:::
:::info
If a Not Found error is displayed after the login, you might need to set the web_root to / (see https://github.com/semaphoreui/semaphore/issues/2681):
SEMAPHORE_WEB_ROOT: /
:::
More information on this can be found in the Semaphore documentation https://docs.semaphoreui.com/administration-guide/openid/authentik/.
https://semaphore.company.https://semaphore.company URL.https://semaphore.company URL you did everything correctly.:::info Users are created upon logging in with authentik. They will not have the rights to create anything initially. These permissions must be assigned later by the local administrator created during the first login to the Semaphore UI. :::