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

Auth: inherit does not work for Oauth2 requests #2494

Open
2 tasks done
Unipesa-Deicosaic opened this issue Jun 21, 2024 · 1 comment · May be fixed by #2077
Open
2 tasks done

Auth: inherit does not work for Oauth2 requests #2494

Unipesa-Deicosaic opened this issue Jun 21, 2024 · 1 comment · May be fixed by #2077
Labels
bug Something isn't working

Comments

@Unipesa-Deicosaic
Copy link

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

  1. Try and use "Oauth2"

Setup collection auth to be Oauth2.
Click buttons "Save" and "Get Access Token".

Setup request auth to be "inherit"

Send request.

Expected result: A "Bearer" header appended to a request --- or, at least, some global variable is provided to reach the key
Actual result: No extra header, no usable variable in bru, req, or anywhere

  1. Try and use "Bearer Token"

Setup collection auth to be Bearer Token.
Click "Save"

Result: A "Bearer" header appended to a request, and there is no need to search for any variable, since it is already used properly.

Summary

Please provide some way to inherit OAuth2 of the collection in the request, where exporting a variable with JWT to scripting environment would probably be the best solution. Right now there is literally no way to use the JWT received by collection in the request. The value of the JWT is not exported in any way and JWT is not accessible through any accessors in the scripting environment.

Thank you.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

See explanation above. I am wary of inadvertently revealing service credentials if i do any screenshots or livecasts.

@Unipesa-Deicosaic Unipesa-Deicosaic added the bug Something isn't working label Jun 21, 2024
@pietrygamat pietrygamat linked a pull request Jun 21, 2024 that will close this issue
5 tasks
@pietrygamat
Copy link
Contributor

This is a duplicate of #1704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants