Versions in this module Expand all Collapse all v0 v0.2.4 Jun 29, 2020 Changes in this version + var ErrInvalidToken = errors.New("invalid token") + type AuthorizedUserTokenSource struct + func NewAuthorizedUserTokenSource() *AuthorizedUserTokenSource + func (s *AuthorizedUserTokenSource) GetIDToken(ctx context.Context) (string, error) + type Certs struct + Keys []Keys + func GetCerts(ctx context.Context) (*Certs, error) + type ClaimSet struct + Aud string + Azp string + Email string + EmailVerified bool + Exp int64 + Iat int64 + Iss string + Scope string + Sub string + Typ string + type Keys struct + Alg string + E string + Kid string + Kty string + N string + Use string + func (key *Keys) GetPublicKey() (*rsa.PublicKey, error) + type ServiceAccountTokenSource struct + func NewServiceAccountTokenSource(credentialsFile string, targetAudience string) (*ServiceAccountTokenSource, error) + func (s *ServiceAccountTokenSource) GetIDToken(parent context.Context) (string, error) + type Token struct + ClaimSet *ClaimSet + Header *jws.Header + Raw string + func ParseJWT(token string) (*Token, error) v0.2.3 May 31, 2020 v0.2.2 May 23, 2020 v0.2.1 May 12, 2020 v0.2.0 Mar 22, 2020 v0.1.6 Sep 2, 2019 v0.1.5 Aug 30, 2019 v0.1.4 Jul 13, 2019 v0.1.3 Jul 6, 2019 v0.1.2 Mar 5, 2019 v0.1.1 Dec 24, 2018 v0.1.0 Dec 1, 2018 v0.0.8 Aug 11, 2018 v0.0.7 Jun 15, 2018 v0.0.6 Jun 12, 2018 v0.0.5 May 11, 2018 v0.0.4 May 6, 2018 v0.0.3 Mar 28, 2018 v0.0.2 Mar 18, 2018