Closed
Description
I have Oauth configuration like this:
public static final String OAUTH_PATH = "/oauth/token";
openAPI.addSecurityItem(new SecurityRequirement().addList(SECURITY_SCHEMA_OAUTH2, Collections.emptyList()))
.components(
new Components()
.addSecuritySchemes(SECURITY_SCHEMA_OAUTH2,
new SecurityScheme()
.type(SecurityScheme.Type.OAUTH2)
.bearerFormat(BEARER_FORMAT)
.flows(new OAuthFlows()
.password(new OAuthFlow()
.refreshUrl(OAUTH_PATH)
.tokenUrl(OAUTH_PATH)
.scopes(new Scopes())))));
However generated documentation have only:
auth-controller
/whoAmI
/oauth/token/revokeById/{tokenId}
/tokens/revokeRefreshToken/{tokenId}
I miss /oauth/token endpoint, which is used to generate and refresh tokens.
Of course oauth flow is working ok