Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteAccount(userID string) error
- func (c *Client) DownloadAccount(nextPageToken string, maxResults uint) ([]*User, string, error)
- func (c *Client) GetAccountInfoByEmail(email string) (*User, error)
- func (c *Client) GetAccountInfoByID(userID string) (*User, error)
- func (c *Client) GetOobConfirmationCode(requestBody map[string]string) (string, error)
- func (c *Client) GetPublicKeys() (ret map[string]string, err error)
- func (c *Client) UploadAccount(hashAlgorithm string, signerKey, saltSeparator []byte, rounds, memoryCost int, ...) (*uploadAccountResult, error)
- func (c *Client) ValidateToken(token string) (*User, error)
- func (c *Client) ValidateTokenInRequest(r *http.Request) (*User, error)
- type GitkitServerConfig
- type ProviderUserInfo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client GITKit client
func NewClientFromJSON ¶
NewClientFromJSON GitkitClient.createFromJson
func (*Client) DeleteAccount ¶
func (*Client) DownloadAccount ¶
func (*Client) GetAccountInfoByEmail ¶
func (*Client) GetAccountInfoByID ¶
func (*Client) GetOobConfirmationCode ¶
func (*Client) UploadAccount ¶
func (*Client) ValidateToken ¶
ValidateToken https://developers.google.com/identity-toolkit/v3/required-endpoints#id_token_desc
type GitkitServerConfig ¶
type GitkitServerConfig struct { ClientID string `json:"clientId"` ServiceAccountEmail string `json:"serviceAccountEmail"` ServiceAccountPrivateKeyFile string `json:"serviceAccountPrivateKeyFile"` WidgetURL string `json:"widgetUrl"` CookieName string `json:"cookieName"` ServerAPIKey string `json:"serverApiKey"` // contains filtered or unexported fields }
type ProviderUserInfo ¶
type User ¶
type User struct { LocalID string `json:"localId"` Email string `json:"email"` EmailVerified bool `json:"emailVerified"` DisplayName string `json:"displayName"` ProviderUserInfo []ProviderUserInfo `json:"providerUserInfo"` PhotoURL string `json:"photoUrl"` PasswordHash []byte `json:"passwordHash"` Salt []byte `json:"salt"` Version int `json:"version"` PasswordUpdatedAt float64 `json:"passwordUpdatedAt"` }
User GtkkitUser
Click to show internal directories.
Click to hide internal directories.