I want to get data from an endpoint and have successfully created an HTTP Request to get the Access Token.
When I now create a second HTTP Request and set the authentication to OAuth2 and use a variable named Token as the Access Token, the setting is reset to None after I click OK.
If I use a fixed String expression like “AccessToken”, it works, but that is not how oAuth2 works, so it makes no sense. What am I doing wrong?
If I use the parameters panel on the right side I can set the variable Token as the OAuth2Token, but I can’t change the authentication setting to OAuth2, so it still doesn’t work.
I even tried to set the authentication setting to OAuth2 with a String expression and change the expression to a variable in the settings panel without opening the dialog, but it still doesn’t work.
I get where you are coming from - it is a bit confusing.
But rest assured - apart from the small bug in the configuration wizard - the OAuth2 is being used when configured as the only option on the properties panel.
In fact, you cannot configure OAuth2 together with another authentication option, as this would result in an activity error. The bug seems to be that the configuration wizard does not automatically reopen the correct auth method after you reopen. We’ll have a look at it