Landscape offers support for OpenID-Connect (OIDC) authentication for self-hosted accounts. Common OIDC providers include Okta, Keycloak, Amazon Cognito, Google Identity Platform and Microsoft Entra ID (formerly Azure Active Directory).
Contents:
Enable OIDC support in Landscape
To enable OIDC support, add oidc-issuer
, oidc-client-id
and oidc-client-secret
to /etc/landscape/service.conf
in the [landscape]
section. For example:
[landscape]
[…]
oidc-issuer = <https://accounts.google.com/> oidc-client-id = 000000000000-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.apps.googleusercontent.com oidc-client-secret = a4sDFAsdfA4F52as-asDfAsd
The oidc-issuer
is the URL of the issuer. That URL should also be a discovery configuration file available by appending .well-known/openid-configuration
, such as https://accounts.google.com/.well-known/openid-configuration.
The oidc-client-id
and oidc-client-secret
should be provided by your OIDC provider when you create the client credentials. The provider may require setting an authorization redirect URI. This should look like https://your_landscape/login/handle-openid
. If your provider also requires a logout redirect URL, this should be the address of your Landscape server such as https://your_landscape/
.
Restart all Landscape services
To restart all Landscape services, run:
sudo lsctl restart
(Optional) Configure a logout URL
A logout URL can be configured with oidc-logout-url
if the provider doesn’t expose one. For example:
[landscape] … oidc-logout-url = <https://accounts.google.com/logout>
There is no provision yet to upgrade current users to OIDC authentication. Most providers return pairwise subject identifiers (sub) which are not easily available. For this reason, we do not provide a user migration method and recommend recreating users.