Skip to content

Commit b9f0209

Browse files
committed
Sample idp not use declAuthnContext
1 parent 7ff0a9c commit b9f0209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/TestIdPCore/Controllers/AuthController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private IActionResult LoginPostResponse(Saml2Id inResponseTo, Saml2StatusCodes s
170170
//saml2AuthnResponse.NameId = new Saml2NameIdentifier(claimsIdentity.Claims.Where(c => c.Type == ClaimTypes.NameIdentifier).Select(c => c.Value).Single());
171171
saml2AuthnResponse.ClaimsIdentity = claimsIdentity;
172172

173-
var token = saml2AuthnResponse.CreateSecurityToken(relyingParty.Issuer, declAuthnContext: new Uri("urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified"), subjectConfirmationLifetime: 5, issuedTokenLifetime: 60);
173+
var token = saml2AuthnResponse.CreateSecurityToken(relyingParty.Issuer, /*declAuthnContext: new Uri("urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified"),*/ subjectConfirmationLifetime: 5, issuedTokenLifetime: 60);
174174
}
175175

176176
return responsebinding.Bind(saml2AuthnResponse).ToActionResult();

0 commit comments

Comments
 (0)