magpie.api.login.wso2

Attributes

PROVIDER_ID_MAP

Classes

WSO2

Base class for |oauth2|_ providers.

Module Contents

class magpie.api.login.wso2.WSO2(*args, **kwargs)[source]

Bases: authomatic.providers.oauth2.OAuth2

Base class for |oauth2|_ providers.

Accepts additional keyword arguments:

Parameters:
  • scope (list) – List of strings specifying requested permissions as described in the OAuth 2.0 spec.

  • offline (bool) – If True the provider will be set up to request an offline access token. Default is False.

  • certificate_file (str) – Certificate file to employ for HTTPS connection where needed.

  • ssl_verify (bool) – Certificate file to employ for HTTPS connection where needed.

As well as those inherited from AuthorizationProvider constructor.

access_token_url = ''[source]

str URL where we can get the access token to access protected resources of a user. See http://tools.ietf.org/html/rfc6749#section-4.1.3 and http://oauth.net/core/1.0a/#auth_step3.

user_authorization_url = ''[source]

str URL to which we redirect the user to grant our app i.e. the consumer an authorization to access his protected resources. See http://tools.ietf.org/html/rfc6749#section-4.1.1 and http://oauth.net/core/1.0a/#auth_step2.

user_info_url = ''[source]

str URL where we can get the user info. see http://tools.ietf.org/html/rfc6749#section-7 and http://oauth.net/core/1.0a/#anchor12.

url = ''[source]
_x_use_authorization_header = False[source]
hostname[source]
user_info_scope[source]
scope[source]
cert[source]
verify[source]
_logger[source]
supported_user_attributes[source]
static _x_user_parser(user, data)[source]

Handles different structure of user info data by different providers.

Parameters:
  • userUser

  • data (dict) – User info data returned by provider.

magpie.api.login.wso2.PROVIDER_ID_MAP[source]