how do I pass "resource" in RequestBody while creating OAuthFlows() using clientCredentials? #8933
Unanswered
rajakumare1
asked this question in
Q&A
Replies: 1 comment
-
Hi, In addition to the clientCredentials() method in OAuthFlows, you can add the "resource" parameter using the additionalQueryStringParams() method.
This way you can create OAuthFlows and OAuthFlow objects and use the clientCredentials flow when requesting the "resource" parameter. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I understand how to setup a OAUTH2 ClientCredentials while creating new OpenAPI().
I am trying to authenticate with Azure AD roles(not scopes) with client crendentials. I need to pass resource as one of the parameter in the Body. How do I do that? Please advice
new OAuthFlows()
.clientCredentials(new OAuthFlow()
.tokenUrl().scopes(scopes()
)
Beta Was this translation helpful? Give feedback.
All reactions