Skip to content

The redirect URI is invalid when using Spring WebFlux #554

@mraible

Description

@mraible

I'm submitting a

  • bug report
  • feature request

Background info

When using this starter with a Spring WebFlux 3.0 project, the redirect URI is invalid. The app sends http://%5B0:0:0:0:0:0:0:1%5D:8080/login/oauth2/code/okta rather than http://localhost:8080/login/oauth2/code/okta.

Expected behavior

The app should send localhost instead of %5B0:0:0:0:0:0:0:1%5D.

Steps to reproduce

git clone -b webflux [email protected]:okta-samples/okta-spring-boot-sample.git
cd okta-spring-boot-sample
okta start
mvn spring-boot:run

When you try to access http://localhost:8080, you'll receive an error like the following:

Screenshot 2023-03-02 at 5 43 59 AM

SDK Version

3.0.2

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