New method for consistency.
This commit is contained in:
@@ -94,7 +94,7 @@ class Server(Entity):
|
|||||||
elif typ == "memcached":
|
elif typ == "memcached":
|
||||||
idb = memcache.Client(addr)
|
idb = memcache.Client(addr)
|
||||||
elif typ == "dict": # in-memory dictionary
|
elif typ == "dict": # in-memory dictionary
|
||||||
idb = addr
|
idb = {}
|
||||||
elif typ == "mongodb":
|
elif typ == "mongodb":
|
||||||
from mongodict import MongoDict
|
from mongodict import MongoDict
|
||||||
idb = MongoDict(host='localhost', port=27017,
|
idb = MongoDict(host='localhost', port=27017,
|
||||||
@@ -402,6 +402,18 @@ class Server(Entity):
|
|||||||
return self.create_error_response(in_response_to, destination,
|
return self.create_error_response(in_response_to, destination,
|
||||||
sp_entity_id, exc, name_id)
|
sp_entity_id, exc, name_id)
|
||||||
|
|
||||||
|
def create_authn_request_response(self, identity, in_response_to,
|
||||||
|
destination, sp_entity_id,
|
||||||
|
name_id_policy=None, userid=None,
|
||||||
|
name_id=None, authn=None, authn_decl=None,
|
||||||
|
issuer=None, sign_response=False,
|
||||||
|
sign_assertion=False):
|
||||||
|
|
||||||
|
return self.create_authn_response(identity, in_response_to, destination,
|
||||||
|
sp_entity_id, name_id_policy, userid,
|
||||||
|
name_id, authn, authn_decl, issuer,
|
||||||
|
sign_response, sign_assertion)
|
||||||
|
|
||||||
#noinspection PyUnusedLocal
|
#noinspection PyUnusedLocal
|
||||||
def create_assertion_id_request_response(self, assertion_id, sign=False):
|
def create_assertion_id_request_response(self, assertion_id, sign=False):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user