-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
sudo: false | ||
|
||
language: go | ||
|
||
go: | ||
- 1.9.x | ||
- tip | ||
|
||
services: | ||
- docker | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: always | ||
|
||
script: | ||
- go build . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
# google-id-token | ||
Google ID token | ||
## google-id-token | ||
|
||
A small application to retrieve or verify google ID token | ||
|
||
## Acquire new user credentials | ||
[![Build Status](https://travis-ci.org/grepplabs/google-id-token.svg?branch=master)](https://travis-ci.org/grepplabs/google-id-token) | ||
|
||
### Building | ||
|
||
go build | ||
|
||
### Help output | ||
|
||
Retrieve or verify google ID token | ||
|
||
Usage: | ||
google-id-token [flags] | ||
google-id-token [command] | ||
|
||
Available Commands: | ||
get get cached or new token | ||
help Help about any command | ||
new get a new token | ||
print print the decoded token | ||
verify verify the token | ||
|
||
Flags: | ||
--client-id string Client ID (optional) | ||
-h, --help help for google-id-token | ||
-t, --timeout int Timeout in seconds (default 5) | ||
|
||
|
||
### Acquire new user credentials and oogle ID token | ||
[Application Default Credentials](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login) | ||
|
||
```bash | ||
gcloud auth application-default login | ||
``` | ||
gcloud auth application-default login | ||
google-id-token new | ||
google-id-token verify --id-token="$(google-id-token get)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters