https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38338

--- Comment #35 from David Cook <[email protected]> ---
(In reply to David Cook from comment #34)
> Created attachment 191851 [details] [review]
> Bug 38338: Add script to help bootstrap xoauth2 email tokens
> 
> This change adds a CLI script which can be used to get an initial
> access token and refresh token for an OAuth2 account to use
> for XOAUTH2.
> 
> Test plan:
> 0. Apply the patch
> 1. Create an "oauth2.json" file containing a client_id,
> client_secret, scope, redirect_uri, auth_endpoint, and token_endpoint
> 2. Run the script using "--conf oauth2.json" and follow the prompts
> to get an access token and refresh token

I can't provide a client_id and client_secret for testing but the rest of the
JSON config should be something like the following:

"scope": "https://mail.google.com/";,
"redirect_uri": "http://localhost:9999";,
"auth_endpoint": "https://accounts.google.com/o/oauth2/v2/auth";,
"token_endpoint": "https://oauth2.googleapis.com/token";

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to