Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth for REST API and external tools ? #50

Open
mildis opened this issue Oct 13, 2015 · 2 comments
Open

OAuth for REST API and external tools ? #50

mildis opened this issue Oct 13, 2015 · 2 comments
Labels

Comments

@mildis
Copy link

mildis commented Oct 13, 2015

Hi,

Can OAuth be used for external tools authentication ?
Currently, we have a tool that connects to gerrit REST API using basic authentication.
Is the OAuth authentication able to allow access to the REST API to non-web tools and should the tool authenticate itself over GitHub or Google before it makes calls to Gerrit (something like exchanging a token provided by [GitHub|Google] between the tool and Gerrit).

(Note : this can be tagged « question »)

Thanks.

@mhuin
Copy link

mhuin commented Jun 4, 2019

Any answer on this?
From my own tests it doesn't seem to be possible, as Gerrit's REST API supports only basic auth (this can however be bypassed in the browser if the GerritAccount cookie is set).
It would be great if it was possible to pass an access token through an Authorization header to the REST API. Keycloak, for example, can be configured to fetch access tokens easily: https://github.com/wpic/sample-keycloak-getting-token. Is it something that could be covered by this plugin?

@davido
Copy link
Owner

davido commented Jun 4, 2019

//CC @lucamilanesio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants