Crates.io | googauth |
lib.rs | googauth |
version | 0.8.1 |
source | src |
created_at | 2021-01-08 16:41:12.521172 |
updated_at | 2023-02-10 09:21:01.154305 |
description | An application that uses OpenID Connect to sign in to a Google account, and store the credentials locally for ease of use |
homepage | https://github.com/bes/googauth |
repository | https://github.com/bes/googauth |
max_upload_size | |
id | 334386 |
size | 52,811 |
Please see googauth-lib if you want to integrate this tool into your own code.
Using the help section of the program should get you started.
./googauth help
Use the login command with a profile name and parameter values for all the required parameters.
./googauth login myprofile \
--scopes "scope1,scope2,scope3" \
--id "my_client_id" \
--secret "my_client_secret"
At this point your default browser should start and you can login to your Google account.
If the browser doesn't start, you can use the URL that is printed to the terminal.
./googauth accesstoken myprofile
<ACCESS TOKEN ON STANDARD OUT>
./googauth idtoken myprofile
<ID TOKEN ON STANDARD OUT>
MIT