Documentation
¶
Index ¶
Constants ¶
View Source
const RawStateBytesLen int = 32
RawStateBytesLen is the number of bytes a raw state bytes array should contain
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthToken ¶
type AuthToken struct {
// Issuer is the name of the service which issued the token
Issuer string `json:"iss"`
// Audience is the name of the service who is meant to received the token
Audience string `json:"aud"`
// GitHubUserID is the ID of the authenticated GitHub user, used as the subject field in the JWT
GitHubUserID string `json:"sub"`
// GitHubAuthToken is the user's GitHub authentication token
GitHubAuthToken string `json:"github_auth_token"`
// ZenHubAuthToken is the user's ZenHub authentication token
ZenHubAuthToken string `json:"zenhub_auth_token"`
}
AuthToken is issued to a user to prove they are authenticated
func NewAuthToken ¶
NewAuthToken creates a new AuthToken. The serviceName is used for the Issuer and Audience field
Click to show internal directories.
Click to hide internal directories.