magpie.api.login.wso2¶
Attributes¶
Classes¶
Base class for |oauth2|_ providers. |
Functions¶
|
Immediately sets the logger level to avoid duplicate log outputs from the root logger and this logger when |
Module Contents¶
- magpie.api.login.wso2.get_logger(name: magpie.typedefs.Str, level: int | None = None, force_stdout: bool = None, message_format: magpie.typedefs.Str | None = None, datetime_format: magpie.typedefs.Str | None = None) logging.Logger[source]¶
Immediately sets the logger level to avoid duplicate log outputs from the root logger and this logger when level is
logging.NOTSET.
- class magpie.api.login.wso2.WSO2(*args, **kwargs)[source]¶
Bases:
authomatic.providers.oauth2.OAuth2Base 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
Truethe 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
AuthorizationProviderconstructor.