Skip to content

Kindly update sign-in and sign-out redirect urls in the Readme documentation #534

@esingh-exelixis

Description

@esingh-exelixis

TL;DR: The README assumes CRA (port 3000, /callback), but the app now uses Vite (port 5173, /login/callback), causing an invalid_request redirect URI error.

As per the current code these are the required changes that need to be done in the Readme:

  1. Sign-in redirect URL : http://localhost:5173/login/callback
  2. Sign-out redirect URL : http://localhost:5173

The current README instructions do not align with the actual application configuration, which causes an invalid_request (redirect_uri) error during login.

Details

The project uses Vite, which runs on http://localhost:5173/
by default.

The README instructs users to configure Okta redirect URIs for port 3000 and /callback.

However, the current code configures the redirect URI as:

redirectUri: window.location.origin + '/login/callback'

This results in Okta rejecting the authentication request when following the README verbatim.

Steps to Reproduce

  1. Clone the repository

  2. Follow the README instructions exactly

  3. Start the app with npm start

  4. Click Log in

Okta returns:

Error: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings

Required README Updates

Sign-in redirect URI:  http://localhost:5173/login/callback
Sign-out redirect URI: http://localhost:5173

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