summaryrefslogtreecommitdiffstats
path: root/python/lasso.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/lasso.py')
-rw-r--r--python/lasso.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 58dcc00f..bdf24867 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -64,6 +64,12 @@ class Node:
def dump(self, encoding="utf8", format=1):
return lassomod.node_dump(self, encoding, format)
+ def export(self):
+ return lassomod.node_export(self)
+
+ def export_to_base64(self):
+ return lassomod.node_export_to_base64(self)
+
def export_to_query(self, sign_method, private_key_file):
return lassomod.node_export_to_query(self, sign_method, private_key_file)
@@ -344,6 +350,11 @@ class AuthnResponse(SamlpResponse):
return AuthnResponse(obj)
new_from_dump = classmethod(new_from_dump)
+ def new_from_export(cls, buffer, type=0):
+ obj = lassomod.authn_response_new_from_export(buffer, type)
+ return AuthnResponse(obj)
+ new_from_export = classmethod(new_from_export)
+
def new_from_request_query(cls, query, providerID):
obj = lassomod.authn_response_new_from_request_query(query, providerID)
return AuthnResponse(obj)