I am using the okta-react library to attempt to auth with my application. However, when I am getting redirected back to my application the ImplicitCallback component is attempting to redirect to http://localhost:6002/implicit/bundle.js which obviously doesn’t exist.
Fair enough. I have never run in to this issue writing a SPA before where I had to add that tag, I only ran in to this with the okta library. I do think it would be nice to mention in the main documentation or in the troubleshooting steps.
@mraible, can you please help me out with similiar situation, my localhost is working as expected but when i delpoy code on PROD receiving error message.
Note: Code deployed on Apache HTTPD server
Login works as expected
redirect to OKTA login page
After signin from OKTA received below error message
Not Found
The requested URL /archivedb/implicit/callback was not found on this server.Error: Cannot match any routes. URL Segment: ‘implicit/callback’
If you’re using Apache in production, you need to configure it to serve up a SPA. That is, you need to configure it so all 404s go to index.html. I googled “configure apache for spa” and here’s the first result.
@mraible thanks for response, even I followed this instruction but not working. Here is my rewrite rule:
<Directory “/archivedb/”>
Options Indexes MultiViews Includes
AllowOverride All
Order allow,deny
Allow from all
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator at
[no address given] to inform them of the time this error occurred,
and the actions you performed just before this error.
More information about this error may be available
in the server error log.