symphony.bdk.core.auth.tokens_repository.InMemoryTokensRepository#

class symphony.bdk.core.auth.tokens_repository.InMemoryTokensRepository#

Bases: symphony.bdk.core.auth.tokens_repository.TokensRepository

Class implementing an in-memory TokensRepository.

__init__()#

Methods

__init__()

get(app_token)

Retrieves the corresponding Symphony token from a given application token.

save(app_token, symphony_token)

Saves a pair (app_token, symphony_token)

async get(app_token: str) str#

Retrieves the corresponding Symphony token from a given application token.

Parameters

app_token – the application token

Returns

the symphony token corresponding to the app token if it exists, None otherwise

async save(app_token: str, symphony_token: str) None#

Saves a pair (app_token, symphony_token)

Parameters
  • app_token – the application token

  • symphony_token – the Symphony token

Returns

None