Can't authorize with OAuth 2.0 and .http files

I have the following code in my .http file:

### Some name here

GRAPHQL {{api_baseUrl}}/graphql
Authorization: Bearer {{$auth.token("my-auth")}}
Accept: application/graphql-response+json
Accept: application/json

It's supposed to look in the *.env.json file and use the credentials there. This is what that file look like (only showing relevant parts of that file):

 

"Security": {
  "Auth": {
    "my-auth": {
      "Type": "OAuth2",
      "Grant Type": "Authorization Code",
      "PKCE": true,
      "Client Credentials": "none",
      "Client ID": "{{clientId}}",
      "Token URL": "{{url}}",
      "Auth URL": "{{authurl}}",
      "Scope": "openid stuff:all"
    },

This does work in Rider version 2024.3.7 but it does not work in 2025.1.1.

I dont know how to see logs for Rider. Anyone know why this is not working?

Regards,

Jim

0
1 comment

Hi Jim! 

Thanks for contacting us. It seems like you've met a known issue: RIDER-125017 Empty browser window when using OAuth2 Authorization Code flow. There is no ETA for the fix yet, so the best option is to vote for the issue is to show your interest and subscribe for the updates. 

 

0

Please sign in to leave a comment.