symphony.bdk.core.auth.tokens_repository.TokensRepository#

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

Bases: abc.ABC

Base abstract class to store and retrieve extension app tokens.

__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)

abstract 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

abstract 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