File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/Microsoft.Identity.Web Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ public class AuthorizeForScopesAttribute : ExceptionFilterAttribute
43
43
/// </summary>
44
44
public string ? UserFlow { get ; set ; }
45
45
46
+ /// <summary>
47
+ /// Allows specifying an AuthenticationScheme if OpenIdConnect is not the default challenge scheme.
48
+ /// </summary>
49
+ public string ? AuthenticationScheme { get ; set ; }
50
+
46
51
/// <summary>
47
52
/// Handles the <see cref="MsalUiRequiredException"/>.
48
53
/// </summary>
@@ -115,7 +120,14 @@ public override void OnException(ExceptionContext context)
115
120
}
116
121
}
117
122
118
- context . Result = new ChallengeResult ( properties ) ;
123
+ if ( AuthenticationScheme != null )
124
+ {
125
+ context . Result = new ChallengeResult ( AuthenticationScheme , properties ) ;
126
+ }
127
+ else
128
+ {
129
+ context . Result = new ChallengeResult ( properties ) ;
130
+ }
119
131
}
120
132
}
121
133
You can’t perform that action at this time.
0 commit comments