2
0
forked from Wavyzz/dolibarr

Move state into llx_oauth_token

This commit is contained in:
Laurent Destailleur
2022-08-22 22:12:13 +02:00
parent 17a833befc
commit 4c13b08258
4 changed files with 37 additions and 22 deletions

View File

@@ -20,6 +20,7 @@ CREATE TABLE llx_oauth_token (
service varchar(36), -- What king of key or token: 'Google', 'Stripe', 'auth-public-key', ...
token text, -- token in serialize format, of an object StdOAuth2Token of library phpoauth2. Deprecated, use tokenstring instead.
tokenstring text, -- token in json or text format. Value depends on 'service'. For example for an OAUTH service: '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
state text, -- the state (list of permission) the token was obtained for
fk_soc integer, -- Id of thirdparty in llx_societe
fk_user integer, -- Id of user in llx_user
fk_adherent integer, -- Id of member in llx_adherent