-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OAUTH2 auth is successful but token endpoint is returned instead of api endpoint #1999
Comments
+1 |
Facing the same issue here |
Just a follow up on this. Of course you can use bruno for an oauth/oidc protected api endpoint. |
Probably not, seems wrong if we think how others API clients works. |
…Token action The actual the authorization request is part of request preparation usebruno#1999 usebruno#1003
…ble by scripts The new variable 'credentials' is now available in 'req' object. It is added automatically during request preparation if oauth2 method is used and is value is either evaluated or retrieved from collection oauth2 cache. usebruno#1999 usebruno#1003
…Token action The actual the authorization request is part of request preparation usebruno#1999 usebruno#1003
…e - sort tokens first. Blur unfocused tokens for privacy. usebruno#1999 usebruno#1003
…e - sort tokens first. Blur unfocused tokens for privacy. usebruno#1999 usebruno#1003
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
Any update on this? Seems this is a confirmed bug based on all the referencing from #2148? |
+1 |
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
I'm really excited with the potential of Bruno here but I'm running into the same issue. If I try to set up Oauth2 at the collection level, and set a request to inherit, I see the note: But I'm not sure how exactly to do that. |
+1 |
this seems a bit mad. BIG oneup from me... |
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
Workaround works fine (thank you for posting it) but I hope it will be corrected soon as most users will expect the OAuth feature to work out the box without having to set a post script and manually setting the header. |
+1 I just had a meeting with a colleague and this was the issue that prevented him from using bruno. I try to advocate for bruno in my team but with this level of oauth support it's hardly usable for them. |
I'll try to add some PR in the next weekends 🤓, just need to read the contrib manual. It seems like an important fix/feature for the project to be adopted in my team 😢 |
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
… of api endpoint Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request. usebruno#1999
…ad of api endpoint (usebruno#1999) Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request.
Same here, would love to adopt bruno but with this kind of oauth2 integration, it's not possible |
…ad of api endpoint (usebruno#1999) Setting oauth2 authorization no longer equals overwriting user-specified data in a request. The pre-requests made to obtain oauth2 access_token are now separated from actual API request.
Similar to many who commented prior. Its difficult to recommend using Bruno as a tool without this feature working properly. Is this on a the radar of the Bruno team since it does seem like a big detractor from people adopting the tool |
So it is on their radar, however I think the timeline is a bit off. |
Very weird issue. Made me look for user errors for 30min until I found this here. |
Same Issue here |
+1 |
I'm having the same issue on Bruno 1.35.0 (latest as of this writing). I have a request with Auth configured with OAuth 2.0 and Grant Type |
Guys, please react with 👍 for the issue. There are 63 messages already but only 32 votes. I think that could promote this issue. |
Following up on @wmlele 's comment, a workaround is to set an empty environment variable pre request
post response
then generate an Oauth2 token and save it |
Following up on @jordyc2163's comment, you need to add the token on the Body of the request (authorization header) most (if not all) of the time. However how to deal with expired tokens? Having to go back to the collection, getting the access token, then going back to the endpoint to test every x minutes is a hassle. On insomnia it'd just call "get access token" before making the request if it had expired. |
Hello,
trying to access an OAUTH2/OIDC protected endpoint, but the Response contains the output on the OAUTH Token request, instead of the protected API endpoint (which is never called despite a successful oauth):
The
{{oidc_issuer}}/me
(userinfo) endpoint is never called, the output is from the successfull call to/token
This is what insomnia returns for the exact same configuration
Not sure if it's a mistake on my side or something different from my expectations.
Thanks
The text was updated successfully, but these errors were encountered: