Skip to content

Commit ff81fc3

Browse files
Aggiunto attributo 'ProtocolBinding' nell'oggetto 'AuthnRequest' della richiesta SAML (#76)
1 parent e0df52d commit ff81fc3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/SPID.AspNetCore.Authentication/Saml/SamlHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public static AuthnRequestType GetAuthnRequest(string requestId,
8181
Version = SamlConst.Version,
8282
IssueInstant = now.AddMinutes(nowDelta).ToString(dateTimeFormat),
8383
Destination = identityProvider.GetSingleSignOnServiceUrl(requestMethod),
84+
ProtocolBinding = requestMethod == RequestMethod.Post ? SamlConst.ProtocolBindingPOST : SamlConst.ProtocolBindingRedirect,
8485
ForceAuthn = true,
8586
ForceAuthnSpecified = true,
8687
Issuer = new NameIDType

0 commit comments

Comments
 (0)