I have an application (Spring Boot + Angular) working perfectly well on my localhost. On the test server though, I get a 404 after OKTA authentication saying
The requested URL /static/callback was not found on this server.
The url containing calback?code=… & status=… is visible in the browser.
The front-end and back-end are deployed separately (back-end jar and front-end dist folder). The requests on test (not on localhost) go through Apache. If an uri looks like http://localhost:4200/users on my local, the corresponding on test is https://test.com/app/app1/users.
I have looked through several similar issues and tried to fix this problem but haven’t been successful.
To redirect all calls to index.html if the requested uri wasn’t found, I have added .htaccess file in static folder containing all of angular’s dist contents.
@erin.p The OktaCallbackComponent is not getting executed. I replaced OktaCallbackComponent with a custom callback component, but didn’t see it getting executed.