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

Is there an example to authenticate against a REST API which needs authentication against google oauth? #1231

Open
davidkoenig-shiftavenue opened this issue Dec 6, 2023 · 2 comments

Comments

@davidkoenig-shiftavenue
Copy link

I have an REST API where it is needed to authenticate against google oauth to access the endpoints. There is just a /login path available where the typical login page opens. Is there an example available how to authenticate against this scenario?

@franck-chester
Copy link

I do something like this

OAuth2

@name oauth2

POST https:///oauth/token?grant_type=client_credentials&client_id={{ClientID}}&client_secret={{Secret}}
Content-Type: application/x-www-form-urlencoded

GET https:///resource
Authorization: Bearer {{oauth2.response.body.access_token}}

Send the oauth2 request everytime you need a fresh token

@AlexF4Dev
Copy link
Contributor

AlexF4Dev commented Jul 10, 2024

I have added PR which allows to get and use an access token from any OIDC provider: #1282. No stored secrets required.

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

No branches or pull requests

3 participants