Gitlab JWT

I am trying to use jwt as a third party authentication on my private gitlab

  1. I registered a service in rapid connect:

  2. I configed gitlab.rb

  3. reconfig & restart

  4. going to my private gitlab:


    jtw option showed up, but after I clicked it, it will redirect me to http://gitlab.juno.aurin.org.au/auth/gitlab which I declared in step 1, obviously, this page doesnt exist, so 404 came up
    I think I should redirect the user to the page where the jwt token gets processed, so could someone tell me which page is responsible for this task?
    reagrds

Far too late for the original poster, but in case anyone find this post because they are also struggling with the jwt integration, the callback url in the above example would be of the form:
http://external_gitlab_url/users/auth/jwt/jwt=jwt_payload_here

It is also helpful to provide the “username” claim in the JWT if you will be using ssh to clone respositories. If you don’t provide a username explicitly, a username is created from the local part of the email.

1 Like