Skip to content

Spring Authorization Server Metadata Endpoint not compatible #2606

Closed
@jsantana3c

Description

@jsantana3c

Describe the bug

  • Spring Authorization Server 1.3.0 metadata endpoint not compatible, it generates a "Null" Path, which prevents the serialization of jackson, preventing the creation of the openapi json.

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using? 3.3.0
  • What modules and versions of springdoc-openapi are you using? webmvc-ui-starter
  • What is the actual and the expected result using OpenAPI Description (yml or json)? json
  • Provide with a sample code (HelloController) or Test that reproduces the problem -> just add spring authorization server with defaults

Expected behavior

  • spring authorization server metadata endpoint default url
    Screenshots
    the matcher is a lambda, so that's probably the reason why the code doesn't work properly
    image

so in the method
org.springdoc.core.configuration.SpringDocSecurityOAuth2Customizer#buildPath
image
no matching is being done, and the path ends up being null.

Additional context
spring is checking if it has multipleIssuers, so maybe you can guys customize the code and check if isMultipleIssuersAllowed directly and apply the default DEFAULT_OAUTH2_AUTHORIZATION_SERVER_METADATA_ENDPOINT_URI, otherwise leave it with the /** by default?

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