AbstractAuthentication class

Definition

An abstract class for all authentication classes.

All derived classes provide different means to authenticate the user and acquire a valid access token.

Inheritance
builtins.object
AbstractAuthentication

Methods

get_authentication_header()

Return the HTTP authorization header.

The authorization header contains the user access token for access authorization against the service.

signed_session(session=None)

Add the authorization header as a persisted header on an HTTP session.

Any new requests sent by the session will contain the authorization header.

get_authentication_header()

Return the HTTP authorization header.

The authorization header contains the user access token for access authorization against the service.

get_authentication_header()

Returns

Returns the HTTP authorization header.

Return type

signed_session(session=None)

Add the authorization header as a persisted header on an HTTP session.

Any new requests sent by the session will contain the authorization header.

signed_session(session=None)

Parameters

session
requests.session:

HTTP session that will have the authorization header as a default persisted header. When None a new session will be created.

default value: None

Returns

Returns the HTTP session after the update.

Return type

requests.session