We are happy to announce the v1.0 release of the OCLC Python 2.7 Authentication Library via Github. This code library is the fourth implementation that the OCLC Developer Network is releasing to assist developers working with our web services protected by our API key system.
Implementations of this functionality now exist in four different environments:
Our next implementation will be in Java to be released a bit later.
This Python library can be cloned or checked out from OCLC Developer Network repository and installed by users of OCLC Web Service Keys, or WSKeys. Once installed, your Python application can construct an OCLC\Auth\WSKey object using your API key and secret. This library can then be used to:
- sign requests using our HMAC Signature pattern
- obtain an Access Token using our OAuth 2 and access token pattern
- determine the HTTP redirect Location to log a user in
- obtain an Access Token using an Authorization code
- refresh an expired Access Token
- obtain user identifiers for a logged in user
- use as a reference implementation to write your own
Directions for installing the library are included in the README.md file. We've provided usage examples for HMAC and Explicit Authorization Code flow using Django. Please let us know what you think or if you encounter any issues by sending us an email.
To learn more about WSKey, check out the recording of our workshop Web Service Keys for APIs
Senior Software Engineer