Documentation
¶
Index ¶
Constants ¶
View Source
const ( GoogleClientID = "1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com" GoogleClientSecret = "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" )
Variables ¶
View Source
var ( GoogleAuthorizeURL = "https://accounts.google.com/o/oauth2/v2/auth" GoogleTokenURL = "https://oauth2.googleapis.com/token" GoogleUserInfoURL = "https://openidconnect.googleapis.com/v1/userinfo" AntigravityLoadURLProd = "https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist" AntigravityLoadURLDaily = "https://daily-cloudcode-pa.sandbox.googleapis.com/v1internal:loadCodeAssist" )
View Source
var DefaultScopes = []string{
"openid",
"email",
"profile",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/cclog",
"https://www.googleapis.com/auth/experimentsandconfigs",
}
Functions ¶
func CodeChallenge ¶
Types ¶
type Session ¶
type Session struct {
State string `json:"state"`
CodeVerifier string `json:"codeVerifier"`
RedirectURI string `json:"redirectUri"`
ProjectID string `json:"projectId,omitempty"`
}
func NewSession ¶
func (Session) ValidateCallback ¶
type Token ¶
type Token struct {
AccessToken string `json:"accessToken"`
RefreshToken string `json:"refreshToken,omitempty"`
TokenType string `json:"tokenType,omitempty"`
Expiry int64 `json:"expiry,omitempty"`
Scopes []string `json:"scopes,omitempty"`
IDToken string `json:"idToken,omitempty"`
ProjectID string `json:"projectId,omitempty"`
}
func ExchangeCode ¶
Click to show internal directories.
Click to hide internal directories.