summaryrefslogtreecommitdiffstats
path: root/python/examples/defederation.py
blob: 82805097a9ca5ea4b2b54dbd0004433e87d12329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /usr/bin/env python

import sys
sys.path.insert(0, '../')
import lasso

lasso.init()

notification = lasso.FederationTerminationNotification.new("http://providerid.com",
                                                           "CDSC7SCD65SCDSDCCDS", "http://qualifier.com", "federated")

query = notification.url_encode(0, './rsakey.pem')
print query

notification2 = lasso.FederationTerminationNotification.new_from_query(query)
print notification2.dump()

soap = notification.soap_envelop()

notification3 = lasso.FederationTerminationNotification.new_from_soap(soap)
print notification3.dump()

lasso.shutdown()