IdentityModel / oidc-token-manager

Apache License 2.0
51 stars 36 forks source link

Callback to different website #64

Closed vnexter closed 8 years ago

vnexter commented 8 years ago

I am using my brochure page or information to give user information about our online app (hosted seprately) myapp.com . There is a login button which redirects using redirectForToken() in OIDC token manager) using Identity Server 3 for tokens .

But redirect url is myotherapp.com - on callback I cant use processTokenCallbackAsync() and throws error about "no request state found".

Please let me know how to solve it.

Many thanks.

vnexter commented 8 years ago

I am guessing its to do with state in the localStorage not there for obvious reason in the myotherapp.com.

Is there any way out ?

regards

brockallen commented 8 years ago

The protocols require that the redirect URI be back to the app that initiated the request. If you want the other app to get the user logged in, then you need to first redirect the user to that app and from that app initiate the login process.

vnexter commented 8 years ago

Many thanks.