magpie.api.login.wso2

Module Contents

Classes

WSO2

Base class for |oauth2|_ providers.

Attributes

PROVIDER_ID_MAP

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]
user_authorization_url = ''[source]
user_info_url = ''[source]
url = ''[source]
_x_use_authorization_header = False[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]