Forum Discussion

raymond_2023's avatar
raymond_2023
Occasional Visitor
2 years ago

How to pass Authorization Header in curl from Swagger3?

I have used the latest springfox starter in my spring boot application, and it would integrate with OAuth2, but when I integrate the OAuth in securitySchema as below:

GrantType grantType = new ResourceOwnerPasswordCredentialsGrant(contextRoot + "/token");
SecurityScheme oauth = new OAuthBuilder().name("spring_oauth")
.grantTypes(Arrays.asList(grantType))
.scopes(Arrays.asList(authorizationScopes))
.build();

The authorization part I can find the access token, etc, but when try the api from curl, I did not see any Authorization Header there, I used OAS_3 in my application, any one can provide comment/suggestion? 

No RepliesBe the first to reply