Merge "Enforce authenticated=False in saml2 plugin"
This commit is contained in:
@@ -137,7 +137,8 @@ class Saml2UnscopedToken(v3.AuthConstructor):
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
location = response.headers['location']
|
location = response.headers['location']
|
||||||
return session.request(location, method, **kwargs)
|
return session.request(location, method, authenticated=False,
|
||||||
|
**kwargs)
|
||||||
|
|
||||||
def _first(self, _list):
|
def _first(self, _list):
|
||||||
if len(_list) != 1:
|
if len(_list) != 1:
|
||||||
@@ -244,7 +245,8 @@ class Saml2UnscopedToken(v3.AuthConstructor):
|
|||||||
self.identity_provider_url,
|
self.identity_provider_url,
|
||||||
headers={'Content-type': 'text/xml'},
|
headers={'Content-type': 'text/xml'},
|
||||||
data=etree.tostring(idp_saml2_authn_request),
|
data=etree.tostring(idp_saml2_authn_request),
|
||||||
requests_auth=(self.username, self.password))
|
requests_auth=(self.username, self.password),
|
||||||
|
authenticated=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.saml2_idp_authn_response = etree.XML(idp_response.content)
|
self.saml2_idp_authn_response = etree.XML(idp_response.content)
|
||||||
|
|||||||
Reference in New Issue
Block a user