Merge pull request #4079 from sbwalker/dev
fix #4073 - OIDC/OAuth2 flow with static rendering
This commit is contained in:
commit
b2419abdc8
|
@ -124,12 +124,20 @@
|
||||||
{
|
{
|
||||||
if (querystring.ContainsKey("reload") && querystring["reload"] == "post")
|
if (querystring.ContainsKey("reload") && querystring["reload"] == "post")
|
||||||
{
|
{
|
||||||
// post back so that the cookies are set correctly - required on any change to the principal
|
if (PageState.RenderMode == RenderModes.Interactive)
|
||||||
var interop = new Interop(JSRuntime);
|
{
|
||||||
var fields = new { returnurl = "/" + NavigationManager.ToBaseRelativePath(_absoluteUri) };
|
// post back so that the cookies are set correctly - required on any change to the principal
|
||||||
string url = Utilities.TenantUrl(SiteState.Alias, "/pages/external/");
|
var interop = new Interop(JSRuntime);
|
||||||
await interop.SubmitForm(url, fields);
|
var fields = new { returnurl = "/" + NavigationManager.ToBaseRelativePath(_absoluteUri) };
|
||||||
return;
|
string url = Utilities.TenantUrl(SiteState.Alias, "/pages/external/");
|
||||||
|
await interop.SubmitForm(url, fields);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NavigationManager.NavigateTo(_absoluteUri.Replace("?reload=post", "").Replace("&reload=post", ""), true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user