virgil_sdk.jwt.providers package¶
Submodules¶
virgil_sdk.jwt.providers.caching_callback_provider module¶
-
class
virgil_sdk.jwt.providers.caching_callback_provider.
CachingCallbackProvider
(renew_jwt_callback, token_ttl=5)[source]¶ Bases:
virgil_sdk.jwt.abstractions.access_token_provider.AccessTokenProvider
The CachingCallbackProvider class provides an opportunity to get cached access token or renew it using callback mechanism.
-
TOKEN_TTL
= 5¶
-
virgil_sdk.jwt.providers.callback_jwt_provider module¶
-
class
virgil_sdk.jwt.providers.callback_jwt_provider.
CallbackJwtProvider
(get_token_callback)[source]¶ Bases:
virgil_sdk.jwt.abstractions.access_token_provider.AccessTokenProvider
The CallbackJwtProvider class provides an opportunity to get access token using callback mechanism.
virgil_sdk.jwt.providers.const_access_token_provider module¶
-
class
virgil_sdk.jwt.providers.const_access_token_provider.
ConstAccessTokenProvider
(access_token)[source]¶ Bases:
virgil_sdk.jwt.abstractions.access_token_provider.AccessTokenProvider
The ConstAccessTokenProvider class provides an opportunity to use constant access token.