Documentation ¶
Index ¶
- type About
- type AltAuthMethod
- type AuthFinishRequest
- type AuthFinishResponse
- type AuthGenerateRequest
- type AuthGenerateResponse
- type AuthNextFirstRequest
- type AuthNextFirstResponse
- type AuthNextSecondRequest
- type AuthNextSecondResponse
- type AuthSubmitRequest
- type AuthSubmitResponse
- type Controller
- func (c *Controller) About(uclaim *claim.User) (*About, error)
- func (c *Controller) AuthFinish(opts AuthFinishRequest, deviceName, addr string) (*AuthFinishResponse, error)
- func (c *Controller) AuthGenerate(opts AuthGenerateRequest) (*AuthGenerateResponse, error)
- func (c *Controller) AuthListMethods(sitetoken, ugroup string) (*ListAuthResponse, error)
- func (c *Controller) AuthNextFirst(opts AuthNextFirstRequest) (*AuthNextFirstResponse, error)
- func (c *Controller) AuthNextSecond(opts AuthNextSecondRequest) (*AuthNextSecondResponse, error)
- func (c *Controller) AuthSubmit(opts AuthSubmitRequest) (*AuthSubmitResponse, error)
- func (c *Controller) LoginNext(opts LoginNextRequest) (*LoginNextResponse, error)
- func (c *Controller) LoginSubmit(opts LoginSubmitRequest) (*LoginSubmitResponse, error)
- func (c *Controller) RefreshService(uclaim *claim.User, opts RefreshReq) *RefreshResp
- type EData
- type ListAuthResponse
- type LoginNextRequest
- type LoginNextResponse
- type LoginSubmitRequest
- type LoginSubmitResponse
- type OauthExchanger
- type Org
- type RefreshReq
- type RefreshResp
- type SubmitResponse
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AltAuthMethod ¶
type AuthFinishRequest ¶
type AuthFinishResponse ¶
type AuthFinishResponse struct {
UserToken string `json:"user_token,omitempty"`
}
type AuthGenerateRequest ¶
type AuthGenerateResponse ¶
type AuthNextFirstRequest ¶
type AuthNextFirstResponse ¶
type AuthNextSecondRequest ¶
type AuthNextSecondRequest struct { SiteToken string `json:"site_token,omitempty"` FirstToken string `json:"first_token,omitempty"` SignUpdata struct { UserId string `json:"user_id"` Bio string `json:"bio"` FullName string `json:"full_name"` Profile string `json:"profile"` } `json:"signup_data,omitempty"` }
type AuthNextSecondResponse ¶
type AuthSubmitRequest ¶
type AuthSubmitResponse ¶
type AuthSubmitResponse struct {
SubmitResponse
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) AuthFinish ¶
func (c *Controller) AuthFinish(opts AuthFinishRequest, deviceName, addr string) (*AuthFinishResponse, error)
func (*Controller) AuthGenerate ¶
func (c *Controller) AuthGenerate(opts AuthGenerateRequest) (*AuthGenerateResponse, error)
func (*Controller) AuthListMethods ¶
func (c *Controller) AuthListMethods(sitetoken, ugroup string) (*ListAuthResponse, error)
func (*Controller) AuthNextFirst ¶
func (c *Controller) AuthNextFirst(opts AuthNextFirstRequest) (*AuthNextFirstResponse, error)
func (*Controller) AuthNextSecond ¶
func (c *Controller) AuthNextSecond(opts AuthNextSecondRequest) (*AuthNextSecondResponse, error)
func (*Controller) AuthSubmit ¶
func (c *Controller) AuthSubmit(opts AuthSubmitRequest) (*AuthSubmitResponse, error)
func (*Controller) LoginNext ¶
func (c *Controller) LoginNext(opts LoginNextRequest) (*LoginNextResponse, error)
func (*Controller) LoginSubmit ¶
func (c *Controller) LoginSubmit(opts LoginSubmitRequest) (*LoginSubmitResponse, error)
func (*Controller) RefreshService ¶
func (c *Controller) RefreshService(uclaim *claim.User, opts RefreshReq) *RefreshResp
type ListAuthResponse ¶
type ListAuthResponse struct { PasswordAuth bool `json:"pass_auth,omitempty"` OpenSignUp bool `json:"open_signup,omitempty"` AltAuthMethods []AltAuthMethod `json:"alt_auth_method,omitempty"` }
type LoginNextRequest ¶
type LoginNextResponse ¶
type LoginSubmitRequest ¶
type LoginSubmitResponse ¶
type LoginSubmitResponse struct {
SubmitResponse
}
type OauthExchanger ¶
type OauthExchanger struct {
// contains filtered or unexported fields
}
func (*OauthExchanger) Exchange ¶
func (oe *OauthExchanger) Exchange() (*EData, error)
type RefreshReq ¶
type RefreshResp ¶
type SubmitResponse ¶
type SubmitResponse struct { Message string `json:"message,omitempty"` Ok bool `json:"ok,omitempty"` PreAuthedToken string `json:"preauthed_token,omitempty"` HasExecHook bool `json:"has_exec_hook,omitempty"` HookPlugId string `json:"hook_plug_id,omitempty"` HookAgentId string `json:"hook_agent_id,omitempty"` HookExecToken string `json:"hook_exec_token,omitempty"` }
Click to show internal directories.
Click to hide internal directories.