virgil_sdk.jwt.token_context module

class virgil_sdk.jwt.token_context.TokenContext(identity, operation, force_reload=False, service=None)[source]

Bases: object

TokenContext provides payload for CallbackJwtProvider.get_token(TokenContext)

property force_reload

You can set up token cache in CachingCallbackProvider.get_token and reset cached token if True.

property identity

Identity that should be used in access token.

property operation

Operation for which token is needed.

property service

Service for which token is needed.