@@ -3,7 +3,13 @@ python-opensso - Python interface to OpenSSO/OpenAM REST API
3
3
Code borrowed and reworked from django-opensso by nsb
4
4
https://github.com/nsb/django-opensso
5
5
6
- For detailed usage information please see "The OpenSSO REST Interface in Black/White"
6
+ The opensso.py module provided by django-opensso had a dependency upon
7
+ python-restclient which in turn had a dependency upon python-httplib2. I removed
8
+ these dependencies in favor of Python's urllib2, which is part of the Standard
9
+ Library. Since we're just doing basic HTTP GET calls, I felt that eliminating
10
+ the external dependencies made this library as lightweight as possible.
11
+
12
+ For REST API documentation please see "The OpenSSO REST Interface in Black/White"
7
13
http://blogs.sun.com/docteger/entry/opensso_and_rest
8
14
9
15
This is not a complete implementation. Only the end-user functionality has
@@ -18,7 +24,10 @@ Example:
18
24
True
19
25
>>> attrs = o.attributes(token)
20
26
>>> attrs.attributes.keys()
21
- ['telephonenumber', 'distinguishedname', 'inetUserStatus', 'displayname', 'cn', 'dn', 'samaccountname', 'useraccountcontrol', 'objectguid', 'userprincipalname', 'name', 'objectclass', 'sun-fm-saml2-nameid-info', 'sn', 'mail', 'sun-fm-saml2-nameid-infokey', 'givenname', 'employeenumber']
27
+ ['telephonenumber', 'distinguishedname', 'inetUserStatus', 'displayname', 'cn',
28
+ 'dn', 'samaccountname', 'useraccountcontrol', 'objectguid', 'userprincipalname',
29
+ 'name', 'objectclass', 'sun-fm-saml2-nameid-info', 'sn', 'mail',
30
+ 'sun-fm-saml2-nameid-infokey', 'givenname', 'employeenumber']
22
31
>>> attrs.attributes['displayname']
23
32
'McCollum, Jathan'
24
33
>>> o.logout(token)
0 commit comments