Skip to content

Include /oauth/token endpoint using OpenApi Swagger 1.6.5 #1481

Closed
@AgusProg

Description

@AgusProg

Describe the bug
I'm trying to show /oauth/token endpoint in Swagger output JSON. I already include the following dependency into the project:

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-security</artifactId>
    <version>1.6.5</version>
</dependency>

I include the regular dependency too:

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-ui</artifactId>
    <version>1.6.5</version>
</dependency>

I'm using the following oauth dependency:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-oauth2</artifactId>
</dependency>

When I go to the Swagger endpoint in browser, I'm getting the following endpoints:

/oauth/authorize
/oauth/check_token
/oauth/token_key

But, POST /oauth/token endpoint is not getting generated.

Could you help please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions