apps/docs/content/guides/integrate/services/gitlab-self-hosted.mdx
import CreateApp from "../application/_application.mdx";
This guide shows how to enable login with ZITADEL on self-hosted Gitlab instances.
It covers how to:
Prerequisites:
Follow this guide of gitlab to configure the omniauth provider. Here are some example settings with redacted secrets.
Replace the values of the following fields:
args.client_options.identifier with the ClientId generated by ZITADELargs.client_options.secret with the ClientSecret generated by ZITADELargs.client_options.redirect_uri with the proper URL to your gitlab instance and callbackgitlab_rails['omniauth_providers'] = [
{
name: "openid_connect",
label: "ZITADEL",
icon: "https://${CUSTOM_DOMAIN}/ui/console/assets/icons/favicon-32x32.png",
args: {
name: "openid_connect",
scope: ["openid","profile","email"],
response_type: "code",
issuer: "https://${CUSTOM_DOMAIN}",
discovery: true,
client_options: {
identifier: "<CLIENT ID from ZITADEL>",
secret: "<CLIENT SECRET from ZITADEL>",
redirect_uri: "https://<YOUR_GITLAB_URL>/users/auth/openid_connect/callback"
}
}
}
]