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

OAuth2: Collection request is overwritten when using request level oauth2 authorization #2060

Closed
2 tasks done
pietrygamat opened this issue Apr 11, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@pietrygamat
Copy link
Contributor

pietrygamat commented Apr 11, 2024

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

Oauth2 authorization on request level overwrites my request's URL from /userinfo to /token and shows incorrect data in Response pane. This is using Flatpak release v1.12.3. My expectation is that oauth2 specific requests are done separately from my configured one.

.bru file to reproduce the bug

Oauth2 Access Code with PKCE

meta {
  name: access_code_pkce
  type: http
  seq: 2
}

get {
  url: http://localhost:8080/realms/bruno/protocol/openid-connect/userinfo
  body: none
  auth: oauth2
}

auth:oauth2 {
  grant_type: authorization_code
  callback_url: bruno://auth
  authorization_url: http://localhost:8080/realms/bruno/protocol/openid-connect/auth?login_hint=bruno-user
  access_token_url: http://localhost:8080/realms/bruno/protocol/openid-connect/token
  client_id: brunoclient
  client_secret: 
  scope: openid
  pkce: true
}

Plain Bearer auth works

meta {
  name: bearer
  type: http
  seq: 4
}

get {
  url: http://localhost:8080/realms/bruno/protocol/openid-connect/userinfo
  body: none
  auth: bearer
}

auth:bearer {
  token: 
}

Screenshots/Live demo link

Screencast.from.2024-04-11.07-37-58.webm
@pietrygamat pietrygamat added the bug Something isn't working label Apr 11, 2024
@pietrygamat
Copy link
Contributor Author

Duplicate #1999

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

No branches or pull requests

1 participant