magpie.api.login.wso2¶
Attributes¶
Classes¶
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 isFalse
.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.