adsabs / adsws

ADS web services
Other
2 stars 14 forks source link

wrong token/oauth record #129

Open romanchyla opened 6 years ago

romanchyla commented 6 years ago

When creating a new oauth application, like so:

root@e6352c403945:/app# python scripts/generate_oauth_client.py
--user-email export-service@ads --create-user --scopes api --name
"Export Service"

the expiration date is not set which causes 500 error; and potentially also the 'active' in the user's table should be set to true

manually i fixed those by issuing:

update oauth2token set expires = '2050-01-01 00:00:00' where user_id = 4097;
update users set active = true where id = 4097;