summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2013-01-27 20:16:31 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2013-01-27 20:16:31 +0100
commitd0d038160fa6c0377a06b2ed3370b6588ba6e81a (patch)
tree7c556aef96d885ed45ad07a9a5ae6a5212d3555f /src
parent67b64f077f95f3beca3e0b00054bd47ff2014948 (diff)
downloadpysaml2-d0d038160fa6c0377a06b2ed3370b6588ba6e81a.tar.gz
Renamed method and reshuffled/renamed some parameters.
Diffstat (limited to 'src')
-rw-r--r--src/saml2/server.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/saml2/server.py b/src/saml2/server.py
index 5b934dc0..17d7117c 100644
--- a/src/saml2/server.py
+++ b/src/saml2/server.py
@@ -26,7 +26,7 @@ import memcache
from hashlib import sha1
from saml2.schema import soapenv
-from saml2.samlp import NameIDMappingResponse, Response
+from saml2.samlp import NameIDMappingResponse
from saml2.entity import Entity
from saml2 import saml, element_to_extension_element
@@ -321,23 +321,25 @@ class Server(Entity):
# ------------------------------------------------------------------------
#noinspection PyUnusedLocal
- def create_aa_response(self, in_response_to, consumer_url, sp_entity_id,
- identity=None, userid="", name_id=None, status=None,
- issuer=None, sign_assertion=False,
- sign_response=False, attributes=None):
+ def create_attribute_response(self, identity, in_response_to, destination,
+ sp_entity_id, userid="", name_id=None,
+ status=None, issuer=None,
+ sign_assertion=False, sign_response=False,
+ attributes=None):
""" Create an attribute assertion response.
- :param in_response_to: The session identifier of the request
- :param consumer_url: The URL which should receive the response
- :param sp_entity_id: The entity identifier of the SP
:param identity: A dictionary with attributes and values that are
expected to be the bases for the assertion in the response.
+ :param in_response_to: The session identifier of the request
+ :param destination: The URL which should receive the response
+ :param sp_entity_id: The entity identifier of the SP
:param userid: A identifier of the user
:param name_id: The identifier of the subject
:param status: The status of the response
:param issuer: The issuer of the response
:param sign_assertion: Whether the assertion should be signed or not
:param sign_response: Whether the whole response should be signed
+ :param attributes:
:return: A response instance
"""
if not name_id and userid:
@@ -365,7 +367,7 @@ class Server(Entity):
ast = filter_attribute_value_assertions(ast)
assertion = ast.construct(sp_entity_id, in_response_to,
- consumer_url, name_id,
+ destination, name_id,
self.config.attribute_converters,
policy, issuer=_issuer)
@@ -378,7 +380,7 @@ class Server(Entity):
args["assertion"] = assertion
- return self._response(in_response_to, consumer_url, status, issuer,
+ return self._response(in_response_to, destination, status, issuer,
sign_response, to_sign, **args)
# ------------------------------------------------------------------------
@@ -447,10 +449,7 @@ class Server(Entity):
"""
:param assertion_id:
- :param in_response_to:
- :param issuer:
:param sign:
- :param status:
:return:
"""