Skip to content

OAuth2 redirect broken in WebFlux when context-path is not set to root #1338

@neuroretransmit

Description

@neuroretransmit

Describe the bug
When spring.webflux.base-path is set to a different context, the oauth2-redirect.html is broken. It tries to send you to root.

For instance, after authenticating at /v1/webjars, the redirect sends you to /webjars. You can change the path and it closes the redirect.

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using?
    • 2.5.6
  • What modules and versions of springdoc-openapi are you using?
    • security
    • webflux
  • What is the actual and the expected result using OpenAPI Description (yml or json)?
  • Provide with a sample code (HelloController) or Test that reproduces the problem

Expected behavior
Redirected to /context-root/webjars/...

Screenshots
image
image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions