Support Oauth2 (and other Auth protocols)
As said in https://earth.bsc.es/gitlab/digital-twins/de_340/project_management/-/issues/538#note_257822, is possible that we will need to support Oauth2 soon (using the GitHub provider).
In version 4.0.0b3 of the API, new route structures were introduced to handle different protocols. Then, the new route to handle generalized CAS v2 requests is /v4/auth/cas/v2/login
, and in the new Oauth2 case should be /v4/auth/oauth2/<provider>/login
.
Afterward, these endpoints return a JWT token generated by the API that can be verified through /v4/auth/verify-token
.