Integrate with Ubuntu Landscape
Support level: Community
What is Ubuntu Landscape?
Landscape is Canonical's systems management tool for managing Ubuntu machines through a web interface or API.
Preparation
The following placeholders are used in this guide:
landscape.companyis the FQDN of the Landscape server.authentik.companyis the FQDN of the authentik installation.
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.
Landscape uses the OpenID Connect protocol for single sign-on.
Landscape uses OIDC only for authentication. Invite users and assign roles and permissions in Landscape. Existing Landscape users cannot be upgraded to OIDC authentication; Canonical recommends recreating those users.
authentik configuration
In authentik versions earlier than 2026.5, all Redirect URIs are automatically treated as Authorization type. If you are using one of these older authentik versions, add only the Authorization URL to your Redirect URIs and do not configure a Post Logout URI.
To support the integration of Landscape with authentik, you need to create an application/provider pair in authentik.
Create an application and provider in authentik
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because you will use it when configuring Landscape.
- Choose a Provider type: select OAuth2/OpenID Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Note the Client ID and Client Secret values because they will be required later.
- Add the Redirect URI for your Landscape version:
- For Landscape 26.04 LTS, add a Redirect URI of type
StrictAuthorizationashttps://landscape.company/new_dashboard/handle-auth/oidc. - For Landscape 24.04 LTS and Landscape 23.03 ESM, add a Redirect URI of type
StrictAuthorizationashttps://landscape.company/login/handle-openid.
- For Landscape 26.04 LTS, add a Redirect URI of type
- Select any available signing key.
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
- Click Submit to save the new application and provider.
Landscape configuration
On the Landscape server, edit /etc/landscape/service.conf and add the OIDC configuration for your Landscape version.
- Landscape 26.04 LTS
- Landscape 24.04 LTS / 23.03 ESM
Add the following configuration under the [appserver] section:
[appserver]
oidc_issuer = https://authentik.company/application/o/<application_slug>/
oidc_client_id = <Client ID from authentik>
oidc_client_secret = <Client Secret from authentik>
Add the following configuration under the [landscape] section:
[landscape]
oidc-issuer = https://authentik.company/application/o/<application_slug>/
oidc-client-id = <Client ID from authentik>
oidc-client-secret = <Client Secret from authentik>
After making these changes, restart the Landscape services:
sudo lsctl restart
Configuration verification
To confirm that authentik is properly configured with Landscape, open Landscape and sign in with OpenID Connect. After the authentik login flow completes, verify that the invited user can access Landscape with the expected Landscape role.