File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Microsoft.Identity.Web.Test Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public void TokenValidationParameters_ValidIssuer()
62
62
}
63
63
64
64
[ Fact ]
65
- public void ValidationFails_NoTidClaimInJwt ( )
65
+ public void ValidationSucceeds_NoTidClaimInJwt_TidCreatedFromIssuerInstead ( )
66
66
{
67
67
// Arrange
68
68
AadIssuerValidator validator = new AadIssuerValidator ( s_aliases ) ;
@@ -71,11 +71,10 @@ public void ValidationFails_NoTidClaimInJwt()
71
71
JwtSecurityToken noTidJwt = new JwtSecurityToken ( issuer : Iss , claims : new [ ] { issClaim } ) ;
72
72
73
73
// Act & Assert
74
- Assert . Throws < SecurityTokenInvalidIssuerException > ( ( ) =>
75
74
validator . Validate (
76
75
Iss ,
77
76
noTidJwt ,
78
- new TokenValidationParameters ( ) { ValidIssuers = new [ ] { "https://login.microsoftonline.com/{tenantid}/v2.0" } } ) ) ;
77
+ new TokenValidationParameters ( ) { ValidIssuers = new [ ] { "https://login.microsoftonline.com/{tenantid}/v2.0" } } ) ;
79
78
}
80
79
81
80
[ Fact ]
You can’t perform that action at this time.
0 commit comments