Module association
source code
This module contains code for dealing with associations between
consumers and servers. Associations contain a shared secret that is used
to sign openid.mode=id_res
messages.
Users of the library should not usually need to interact directly with
associations. The store, server and consumer
objects will create and manage the associations. The consumer and server
code will make use of a SessionNegotiator
when managing associations,
which enables users to express a preference for what kind of associations
should be allowed, and what kind of exchange should be done to establish
the association.
|
SessionNegotiator
A session negotiator controls the allowed and preferred association
types and association session types.
|
|
Association
This class represents an association between a server and a
consumer.
|
default_negotiator
A SessionNegotiator that allows all association
types that are specified by the OpenID specification. It prefers to use
HMAC-SHA1/DH-SHA1, if it's available. If HMAC-SHA256 is not supported by
your Python runtime, HMAC-SHA256 and DH-SHA256 will not be available.
- Value:
SessionNegotiator(default_association_order)
|
|
encrypted_negotiator
A SessionNegotiator that does not support
'no-encryption' associations. It prefers HMAC-SHA1/DH-SHA1
association types if available.
- Value:
SessionNegotiator(only_encrypted_association_order)
|
|