adsabs / adsws

ADS web services
Other
2 stars 15 forks source link

Generate microservice tokens and accounts via CLI #111

Open spacemansteve opened 8 years ago

spacemansteve commented 8 years ago

There is existing support to create users and their tokens via the command line interface. However, this does not support making the tokens needed for microservice accounts.

spacemansteve commented 8 years ago

How are microservice user accounts different than human user accounts

Active is set to true. For some microservice users, is_personal is true, for others it is false.

spacemansteve commented 8 years ago

How are microservice oauth2token records different than human oauth2token records

spacemansteve commented 8 years ago

How are microservice oauth2client records different than human oauth2client records

is_internal is true for all.
_redirect_urls empty for all. website empty for all.

spacemansteve commented 8 years ago

Perhaps we could add an argument --microservice that would

spacemansteve commented 8 years ago

python scripts/generate_oauth_client.py --create-user --personal --microservice --user-email vis-services@ads --name "vis-services@ads"