Integrate Gitlab user’s to Jenkins

Plugin : Gitlab-oauth

The GitLab Authentication Plugin provides a means of using GitLab for authentication and authorization to secure Jenkins. 
Steps to use it:

  1. Create a GitLab application registration .
  2. The authorization callback URL takes a specific value. It must be http://jenkins-url:8080/securityRealm/finishLogin where jenkins-url:8080 is the location of the Jenkins server.
  3. The Client ID and the Client Secret will be used to configure the Jenkins Security Realm. Keep the page open to the application registration so this information can be copied to your Jenkins configuration.
    – Security Realm in Global Security
    The security realm in Jenkins controls authentication (i.e. you are who you say you are). The GitLab Authentication Plugin provides a security realm to authenticate Jenkins users via GitLab OAuth.
    In the Global Security configuration choose the Security Realm to be GitLab Authentication Plugin.
    The settings to configure are: GitLab Web URI, GitLab API URI, Client ID, Client Secret, and OAuth Scope(s).
    If you’re using GitLab Enterprise then the API URI is https://ghe.acme.com/api/v3. The prefix “api/v3” will be completed by the plugin
0Shares

Leave a Reply

Your email address will not be published. Required fields are marked *