magpie.api.login.wso2 ===================== .. py:module:: magpie.api.login.wso2 Attributes ---------- .. autoapisummary:: magpie.api.login.wso2.PROVIDER_ID_MAP Classes ------- .. autoapisummary:: magpie.api.login.wso2.WSO2 Functions --------- .. autoapisummary:: magpie.api.login.wso2.get_logger Module Contents --------------- .. py:function:: get_logger(name: magpie.typedefs.Str, level: Optional[int] = None, force_stdout: bool = None, message_format: Optional[magpie.typedefs.Str] = None, datetime_format: Optional[magpie.typedefs.Str] = None) -> logging.Logger Immediately sets the logger level to avoid duplicate log outputs from the `root logger` and `this logger` when `level` is ``logging.NOTSET``. .. py:class:: WSO2(*args, **kwargs) Bases: :py:obj:`authomatic.providers.oauth2.OAuth2` Base class for |oauth2|_ providers. Accepts additional keyword arguments: :param list scope: List of strings specifying requested permissions as described in the `OAuth 2.0 spec `_. :param bool offline: If ``True`` the **provider** will be set up to request an *offline access token*. Default is ``False``. :param str certificate_file: Certificate file to employ for HTTPS connection where needed. :param bool ssl_verify: Certificate file to employ for HTTPS connection where needed. As well as those inherited from :class:`.AuthorizationProvider` constructor. .. py:attribute:: access_token_url :value: '' .. py:attribute:: user_authorization_url :value: '' .. py:attribute:: user_info_url :value: '' .. py:attribute:: url :value: '' .. py:attribute:: _x_use_authorization_header :value: False .. py:attribute:: supported_user_attributes .. py:method:: _x_user_parser(user, data) :staticmethod: Handles different structure of user info data by different providers. :param user: :class:`.User` :param dict data: User info data returned by provider. .. py:data:: PROVIDER_ID_MAP