Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimSet ¶
type ClaimSet struct { Iss string `json:"iss"` // email address of the client_id of the application making the access token request Scope string `json:"scope,omitempty"` // space-delimited list of the permissions the application requests Aud string `json:"aud"` // descriptor of the intended target of the assertion (Optional). Exp int64 `json:"exp"` // the expiration time of the assertion (seconds since Unix epoch) Iat int64 `json:"iat"` // the time the assertion was issued (seconds since Unix epoch) Typ string `json:"typ,omitempty"` // token type (Optional). // Email for which the application is requesting delegated access (Optional). Sub string `json:"sub,omitempty"` }
ClaimSet contains information about the JWT signature including the permissions being requested (scopes), the target of the token, the issuer, the time the token was issued, and the lifetime of the token. Copied form: golang.org/x/oauth2/jws
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AuthenticateRequest ¶
type IClient ¶
type IClient interface { // GenerateJWT generates a JWT for the given service account GenerateJWT(serviceAccount string, expiry int64) (string, error) // AuthenticateRequest authenticates the given request for the given service account AuthenticateRequest(req *http.Request, serviceAccount string, expiry int64) error }
Click to show internal directories.
Click to hide internal directories.