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:
- Sign-in redirect URL :
http://localhost:5173/login/callback
- 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
-
Clone the repository
-
Follow the README instructions exactly
-
Start the app with npm start
-
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
TL;DR: The README assumes CRA (port 3000,
/callback), but the app now uses Vite (port 5173,/login/callback), causing aninvalid_requestredirect URI error.As per the current code these are the required changes that need to be done in the Readme:
http://localhost:5173/login/callbackhttp://localhost:5173The 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
Clone the repository
Follow the README instructions exactly
Start the app with npm start
Click Log in
Okta returns:
Error: The 'redirect_uri' parameter must be a Login redirect URI in the client app settingsRequired README Updates