-
-
Notifications
You must be signed in to change notification settings - Fork 524
Not all ouath endpoints generated in Swagger #327
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
Comments
Hi @Marx2, For the code you mention, only the following will should filled. SwaggerUiConfigProperties.addGroup("myOauthserver", "http://localhost:8080/v3/api-docs"); |
The problem is that "/oauth/token" endpoint is NOT visible in Swagger documentation. I think task should be reopened |
I observe same issue when adding swagger UI to authorization server - all default endpoints, provided by spring-security-oauth2 authorization server are not displayed in Swagger UI, only custom controllers are displayed. This issue does not exist when using old Springfox Swagger library. |
We will add introduce the support of spring-security-oauth2 authorization server, in the next release v1.2.27: <dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-security</artifactId>
<version>1.2.27</version>
</dependency> |
I have some problem referencing snapshots: |
It works now with 1.2.27 version. Thank you! |
I have Oauth configuration like this:
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
The text was updated successfully, but these errors were encountered: