tokens
routes.utils.tokens
SECRET_KEY_TOKEN
module-attribute
SECRET_KEY_TOKEN = token_hex(256)
SECRET_KEY_TOKEN_REFRESH
module-attribute
SECRET_KEY_TOKEN_REFRESH = token_hex(256)
decode_auth_token
decode_auth_token(
token, is_refresh=False, payload_key_to_return="sub"
)
Function decoding the token
Source code in yaptide/routes/utils/tokens.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
encode_auth_token
encode_auth_token(
user_id, is_refresh=False, is_keycloak=False
)
Function encoding the token
Source code in yaptide/routes/utils/tokens.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
encode_simulation_auth_token
encode_simulation_auth_token(simulation_id)
Function that encodes JWT token for simulation 'update_key'
Source code in yaptide/routes/utils/tokens.py
41 42 43 44 45 46 47 48 49 50 51 52 53 |
|