Deployment environment issue

Hi I am using “@okta/okta-angular”: “^2.0.0”, for my angular project built in angular 4.
I have successfully integrated okta with angular and was able to get the okta logon working on my app using the redirection method.
Now I want to deploy this on my QA environment.
The url of the env is something like this ( .After deploying the following sequence occurs as expected.
1.when i click on login button,the page redirects to okta login page.
2.User is successfully authenticated and callback is called along with state and code query params appended.
3.this url is trimmed uptill
4.The url gets further trimmed to ,and that is where I face issue.As the complete url ( is not hit.
Thanks in advance

I bet steps 3 and 4 are happening inside of your application, so the question is more about what’s happening in angular in between those two steps. Sorry, not really an answer, just some sort of clarification. I’d ask in parallel to some angular community, if I were you

1 Like

Thank you @phi1ipp for your quick help.I have also ran this sample angular-okta app
samples-js-angular/okta-hosted-login at master · okta/samples-js-angular · GitHub and saw this similar behavior.Just wanted help of how to get this resolved. I will also post on angular community

i have set my base.href pointing to the correct production path

I got it working.
Incase others are facing this issue ,I followed the workaround given by albert.
Base href is ignored in the built-in implicit callback component · Issue #745 · okta/okta-oidc-js · GitHub. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.