Announcing Release of OCLC Python Authentication Library

 

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

  • George Campbell

    George Campbell

    Senior Software Engineer

    O: 614-764-6227

We are a worldwide library cooperative, owned, governed and sustained by members since 1967. Our public purpose is a statement of commitment to each other—that we will work together to improve access to the information held in libraries around the globe, and find ways to reduce costs for libraries through collaboration. Learn more »