Skip to content
Snippets Groups Projects
Unverified Commit 0e83b87e authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Merge pull request #938 from peter-/saml_authncontext_dynamic

PasswordProtectedTransport authncontext when HTTPS
parents e4d7c082 96b18557
No related branches found
No related tags found
No related merge requests found
......@@ -897,6 +897,8 @@ class SAML2
if (isset($state['saml:AuthnContextClassRef'])) {
$a->setAuthnContextClassRef($state['saml:AuthnContextClassRef']);
} elseif (\SimpleSAML\Utils\HTTP::isHTTPS()) {
$a->setAuthnContextClassRef(\SAML2\Constants::AC_PASSWORD_PROTECTED_TRANSPORT);
} else {
$a->setAuthnContextClassRef(\SAML2\Constants::AC_PASSWORD);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment