Skip to content

Support Intellij env file configuration for Oauth2 with redirection #309

Open
@Laurent-PRP

Description

Hello,

After the issue #275, it seems that the Oauth2 with redirection does not work.

Firstly the provided Token URL appears to be ignored and http://localhost:3000 is always used instead

Secondly I still have an error $auth is not defined after the successful authentication.

My http-client.env.json :

{
    "XXXXX": {
        "Security": {
          "Auth": {
            "XXXXX": {
              "Type": "OAuth2",
              "Grant Type": "Authorization Code",
              "Client ID": "XXXXX",
              "Client Secret": "XXXXX",
              "Scope": "XXXXX",
              "Token URL": "XXXXX",
              "Auth URL": "XXXXX",
              "Redirect URL": "XXXXX"
            }
          }
        },
        "BaseUrl": "XXXXX"
    }
}

My QueryTest.http :

GET {{BaseUrl}}/XXXXX
Authorization: Bearer {{$auth.token("XXXXX")}}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions