Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AuthAlligator client to obtain access token #33

Merged
merged 6 commits into from
Sep 30, 2020

Conversation

thomasst
Copy link
Member

@thomasst thomasst commented Sep 29, 2020

  • Support to add/update AuthAlligator accounts via API.
  • Added back some Gmail auth code that we previously removed (we currently have a few accounts where auth fails retry forever), and also made it work for Microsoft accounts.
  • Propagate the token manager's force_refresh parameter to AuthAlligator's verify method.

Example for adding an account:

curl -XPOST localhost:5555/accounts/ -d '{"type": "microsoft", "email_address":"[email protected]", "scopes": "the scopes", "authalligator": "{\"provider\": \"MICROSOFT\", \"accountKey\": \"abc123\", \"username\": \"00000000-0000-0000-xxxx-xxxxxxxxxxxx\"}", "client_id": "hello"}'

@thomasst thomasst self-assigned this Sep 29, 2020
@thomasst thomasst force-pushed the authalligator-client branch from 3ff8fd8 to 95c83dd Compare September 29, 2020 19:24
@thomasst thomasst force-pushed the authalligator-client branch from a39ef33 to f56d2e1 Compare September 29, 2020 21:15
@thomasst thomasst force-pushed the authalligator-client branch from f56d2e1 to 1aa87d0 Compare September 29, 2020 21:41
@thomasst thomasst merged commit c689736 into master Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants