-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
I have checked the following:
- I have searched existing issues and found nothing related to my issue.
This bug is:
- making Bruno unusable for me
- slowing me down but I'm able to continue working
- annoying
- this feature was working in a previous version but is broken in the current release.
Bruno version
2.15.1
Operating System
Windows 11
Describe the bug
OAuth authentication to obtain token from Entra ID not working properly in 2.15.1. Error message produced is "Error invoking remote method 'renderer:fetch-oauth2-credentials': TypeError: Cannot read properties of undefined (reading 'match')."
This was working prior to update, and nothing has changed on the Entra side. Verified I can still obtain a token using a POST directly to the Access Token URL with appropriate values passed in header/body -- so know that the problem is not something that changed on the Entra ID or App Registration side. Verified all values are correct in Bruno Auth section (actually copied the values from this section into the afore-mentioned test to be absolutely sure).
.bru file to reproduce the bug
headers {
Content-Type: application/x-www-form-urlencoded
}
auth {
mode: oauth2
}
auth:oauth2 {
grant_type: client_credentials
access_token_url: https://login.microsoftonline.com/REDACTED/oauth2/v2.0/token
refresh_token_url:
client_id: REDACTED
client_secret: REDACTED
scope: .default
credentials_placement: body
credentials_id: credentials
token_placement: header
token_header_prefix: Bearer
auto_fetch_token: true
auto_refresh_token: false
}
auth:oauth2:additional_params:access_token_req:body {
resource: https://graph.microsoft.com
}
Screenshots/Live demo link
Unable to upload screen shot of error, but it is provided above.