From 84577a4700b7ae28b5586b22a2f09e99789bbaaa Mon Sep 17 00:00:00 2001 From: Daniela Miao Date: Mon, 18 Sep 2017 17:31:11 -0700 Subject: [PATCH] change to correct NameID policy --- service_provider.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service_provider.go b/service_provider.go index ca00a4b2..6d5aa9bb 100644 --- a/service_provider.go +++ b/service_provider.go @@ -32,10 +32,11 @@ func (n NameIDFormat) Element() *etree.Element { } // Name ID formats +// See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf const ( - UnspecifiedNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified" + UnspecifiedNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" TransientNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:transient" - EmailAddressNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:emailAddress" + EmailAddressNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" ) // ServiceProvider implements SAML Service provider.