Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyramid-macauth

How to install pyramid_macauth

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyramid-macauth
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.2.0
0.3.0Never BuiltWhy not?
0.2.0 Available View build log
0.1.1 Available View build log
Linux (64-bit)
0.3.0 Available View build log
0.2.0 Available View build log
0.1.1 Available View build log
 
License
MPLv2.0
Imports
Lastest release
version 0.3.0 on Jan 9th, 2014

This is a Pyramid authenitcation plugin for MAC Access Authentication:

http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01

To access resources using MAC Access Authentication, the client must have obtained a set of MAC credentials including an id and secret key. They use these credentials to make signed requests to the server.

When accessing a protected resource, the server will generate a 401 challenge response with the scheme "MAC" as follows:

> GET /protected_resource HTTP/1.1
> Host: example.com

< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: MAC

The client will use their MAC credentials to build a request signature and include it in the Authorization header like so:

> GET /protected_resource HTTP/1.1
> Host: example.com
> Authorization: MAC id="h480djs93hd8",
>                    ts="1336363200",
>                    nonce="dj83hs9s",
>                    mac="bhCQXTVyfj5cmA9uKkPFx1zeOXM="

< HTTP/1.1 200 OK
< Content-Type: text/plain
<
< For your eyes only:  secret data!

This plugin uses the tokenlib library for verifying MAC credentials:

https://github.com/mozilla-services/tokenlib

If this library does not meet your needs, you can provide a custom callback function to decode the MAC id token.

0.3.0 - 2012-11-27

  • Support for Python3 via source-level compatibility.

0.2.0 - 2012-10-04

  • Add encode_mac_id() method as a dual of decode_mac_id().
  • Add "macauth.master_secret" setting to specify the secret used when encoding/decoding MAC Auth tokens.

0.1.1 - 2012-07-11

  • Update tests for compatability with macauthlib>=0.3.0.

0.1.0 - 2012-06-15

  • Initial release; based on repoze.who.plugins.macauth codebase.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.