OAuthError: The authorization server id is invalid


#1

I am trying to test the implicit flow with hosted login using Angular and it is failing with the following error -

ERROR Error: Uncaught (in promise): OAuthError: The authorization server id is invalid.
OAuthError: The authorization server id is invalid.

I followed steps as specified in -
https://developer.okta.com/quickstart/#/angular/


#2

Hi @vemurik, thank you for posting your question on the Okta devforum!

Can you to compare the application you are trying to build with our working Angular sample app: https://github.com/okta/samples-js-angular/tree/master/okta-hosted-login ? The sample app will help you to understand how to setup the implicit flow correctly.