-
Notifications
You must be signed in to change notification settings - Fork 38
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 ClientCredentials Authorization hangs #131
Comments
I would simply increase the log level first. Add |
Try adding a breakpoint in this line: https://github.com/AnWeber/httpyac/blob/main/src/variables/replacer/oauth2VariableReplacer.ts#L20. OpenIdInformation should get filled with your AccessToken in this method. |
Ah thanks, I found the problem. The token request endpoint returns status |
I did not expect I will add |
Thanks for the change, issue is solved with this.... |
For some reasons authorization with Oauth2 ClientCredentials only request the token, but not the actual api call. Imagine following code:
Both in CLI & vsc-plugin I see the request for obtaining an access token successfully executed, but the subsequent call for requesting
/foo
doesn't happen. I tried the 'Arbeitsagentur Jobbörse' exmaple, there it worked. Any ideas what could be wrong or how to debug this?btw.
@sb_tokenEndpoint = /oauth/token
or@sb_tokenEndpoint = {{host}}/oauth/token
fails as well - why?The text was updated successfully, but these errors were encountered: