def __init__(self, access_token=None, auth_base_url=None, cache_token=True,<EOL>client_id=None, client_secret=None, developer_token=None,<EOL>developer_token_url=None, instance_id=None, profile=None,<EOL>redirect_uri=None, region=None, refresh_token=None,<EOL>scope=None, storage_adapter=None, storage_params=None,<EOL>token_url=None, **kwargs):
self.access_token_ = access_token<EOL>self.auth_base_url = auth_base_url or AUTH_BASE_URL<EOL>self.cache_token_ = cache_token<EOL>self.client_id_ = client_id<EOL>self.client_secret_ = client_secret<EOL>self.developer_token_ = developer_token<EOL>self.developer_token_url = developer_token_url or DEVELOPER_TOKEN_URL<EOL>self.instance_id = instance_id<EOL>self.jwt_exp_ = None<EOL>self.profile = profile or '<STR_LIT:default>'<EOL>self.redirect_uri = redirect_uri<EOL>self.region = region<EOL>self.refresh_token_ = refresh_token<EOL>self.scope = scope<EOL>self.session = kwargs.pop('<STR_LIT>', None)<EOL>self.state = None<EOL>self.adapter = storage_adapter or'<STR_LIT>'<EOL>self.storage = self._init_adapter(storage_params)<EOL>self.token_lock = Lock()<EOL>self.token_url = token_url or API_BASE_URL<EOL>self._credentials_found_in_instance = any(<EOL>[self.access_token_, self.client_id_,<EOL>self.client_secret_, self.refresh_token_])<EOL>self._httpclient = self.session or HTTPClient(**kwargs)<EOL>
Persist Session() and credentials attributes.

        The ``Credentials`` class is an abstraction layer for accessing,
        storing and refreshing credentials needed for interacting with
        the Application Framework.

        ``Credentials`` resolves credentials from the following locations,
        in the following order:

            1) Class instance variables
            2) Environment variables
            3) Credentials store

        Args:
            access_token (str): OAuth2 access token. Defaults to ``None``.
            auth_base_url (str): IdP base authorization URL. Default to ``None``.
            cache_token (bool): If ``True``, stores ``access_token`` in token store. Defaults to ``True``.
            client_id (str): OAuth2 client ID. Defaults to ``None``.
            client_secret (str): OAuth2 client secret. Defaults to ``None``.
            developer_token (str): Developer Token. Defaults to ``None``.
            developer_token_url (str): Developer Token URL. Defaults to ``None``.
            instance_id (str): Instance ID. Defaults to ``None``.
            profile (str): Credentials profile. Defaults to ``'default'``.
            redirect_uri (str): Redirect URI. Defaults to ``None``.
            region (str): Region. Defaults to ``None``.
            refresh_token (str): OAuth2 refresh token. Defaults to ``None``.
            scope (str): OAuth2 scope. Defaults to ``None``.
            storage_params (dict) = Storage adapter parameters. Defaults to ``None``.
            token_url (str): Refresh URL. Defaults to ``None``.
            token_revoke_url (str): Revoke URL. Defaults to ``None``.
            **kwargs: Supported :class:`~requests.Session` parameters.