Skip to content

Commit ef9f323

Browse files
committed
Cleanup and line width max at 79 chars
1 parent 9b27429 commit ef9f323

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ python-opensso - Python interface to OpenSSO/OpenAM REST API
33
Code borrowed and reworked from django-opensso by nsb
44
https://github.com/nsb/django-opensso
55

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"
713
http://blogs.sun.com/docteger/entry/opensso_and_rest
814

915
This is not a complete implementation. Only the end-user functionality has
@@ -18,7 +24,10 @@ Example:
1824
True
1925
>>> attrs = o.attributes(token)
2026
>>> 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']
2231
>>> attrs.attributes['displayname']
2332
'McCollum, Jathan'
2433
>>> o.logout(token)

0 commit comments

Comments
 (0)