You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
if (context != null) {
if (context.IsNativeClient()) {
// The client is native, so this change in how to
// return the response is for better UX for the end user.
return this.LoadingPage("Redirect", model.ReturnUrl);
}
// we can trust model.ReturnUrl since GetAuthorizationContextAsync returned non-null
return Redirect(model.ReturnUrl);
}
But if I login using Google's External authentication after I give the consent in Google I am redirected to Identity Server 4's Login page but I am never redirected to the SPA callback url:
if (context != null) {
if (context.IsNativeClient()) {
// The client is native, so this change in how to
// return the response is for better UX for the end user.
return this.LoadingPage("Redirect", returnUrl);
}
}
return Redirect(returnUrl);
I checked the Model.ReturnUrl and returnUrl and they are similar:
I am using the ASP.Net Core Identity Template with an Angular SPA client.
Starting the login process on the SPA I am redirected to Identity Server 4 login page.
If I login with Username/Password I am redirected back to the login callback url of the SPA:
AccountController > Login code that fires the redirect (
return Redirect(model.ReturnUrl)
):But if I login using Google's External authentication after I give the consent in Google I am redirected to Identity Server 4's Login page but I am never redirected to the SPA callback url:
ExternalController > Callback code that fires the redirect (
return Redirect(returnUrl)
):I checked the
Model.ReturnUrl
andreturnUrl
and they are similar:What am I missing?
The text was updated successfully, but these errors were encountered: