Search code examples
angularopenid-connectangular-oauth2-oidc

What is the default CallBack URL in manfredsteyer/angular-oauth2-oidc


We have projects using the manfredsteyer/angular-oauth2-oidc GitHub project to do our OIDC flows.

In the Authorization Code Flow, after the User logs in at the IDP, the IDP calls a url from the application to pass it the code (and session).

What is the default value that angular-oauth2-oidc is listening at for this?

(In case you wonder why I need this, it is so I can configure my IDP to expect that value. If it gets a callback url that is not expected, then it blocks the callback.)


Solution

  • You can configure redirectUri to determine what place in your application is used for this. Its default value is '', I tend to change this to redirectUri: window.location.origin + '/' myself.