Modified Msal filter on the sample to be more permisive
This commit is contained in:
parent
6ec67d9521
commit
22509c0872
|
|
@ -64,7 +64,7 @@ namespace IdentityOIDCWebApplicationSample.Identity.Controllers
|
|||
public void OnResultExecuting(ResultExecutingContext context)
|
||||
{
|
||||
if(context.HttpContext.Request.Headers.TryGetValue(HeaderNames.UserAgent, out var header) &&
|
||||
header.Equals("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Tablet PC 2.0)") &&
|
||||
header.Contains("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0)") &&
|
||||
context.Result is ViewResult view &&
|
||||
view.ViewName == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue