oc_chat
Loading...
Searching...
No Matches
provider_oauth.py File Reference

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.provider_oauth

Functions

Path oc_chat.core.provider_oauth._target (str|Path|None path)
bool oc_chat.core.provider_oauth._valid_record (object record)
dict[str, OAuthCredentials] oc_chat.core.provider_oauth.load_credentials (str|Path|None path=None)
Path oc_chat.core.provider_oauth.write_credentials (str provider_name, OAuthCredentials|None credentials, *, str|Path|None path=None)
str oc_chat.core.provider_oauth.resolve_api_key (ProviderPlugin provider, str|None api_key=None, *, Mapping[str, str]|None environ=None)
bool oc_chat.core.provider_oauth.has_usable_credentials (ProviderPlugin provider)

Variables

 oc_chat.core.provider_oauth.DEFAULT_OAUTH_PATH = Path('.option_c/provider_oauth.json')
 oc_chat.core.provider_oauth._PROVIDER_NAME = re.compile(r'[a-z][a-z0-9_]*\Z')