Hello,
I’ve configured my Gitlab instance with Omniauth to use a Keycloak server as an Oauth2 provider. This is working fine, users can log in to Gitlab with their Keycloak account.
In addition, I’d like to use the Gitlab API with an OAuth2 token to authenticate, for instance : curl --header “Authorization: Bearer OAUTH-TOKEN” https://gitlab.example.com/api/v4/projects
Actually, I can use an access token provided by my Gitlab instance, as described in the following documentation : https://docs.gitlab.com/ce/api/oauth2.html
In my configuration, is there a way to use the Gitlab API with an OAuth2 access token provided by my Keycloak server ?