Documentation
¶
Index ¶
- type LoginResponse
- type SSOClient
- func (c *SSOClient) GetLogin(ssoID string, expires int, updateInfo map[string]interface{}, ...) (LoginResponse, error)
- func (c *SSOClient) InitLogin(returnURL string, files bool, initMsg string, extra map[string]interface{}, ...) (url, rid string, err error)
- func (c *SSOClient) Logout(ssoID string) error
- func (c *SSOClient) Test() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginResponse ¶
type LoginResponse struct { SSOID string UserID string Extra string FieldMap map[string]string Writable map[string]bool TagMap map[string]bool Admin bool RecoveredInfo string }
LoginResponse contains the information returned by GetLogin
type SSOClient ¶
type SSOClient struct {
// contains filtered or unexported fields
}
func NewSSOClient ¶
func (*SSOClient) GetLogin ¶
func (c *SSOClient) GetLogin(ssoID string, expires int, updateInfo map[string]interface{}, ssoID2, rid string) (LoginResponse, error)
GetLogin retrieves user sign in information and request recovery information that was sent on InitLogin
func (*SSOClient) InitLogin ¶
func (c *SSOClient) InitLogin(returnURL string, files bool, initMsg string, extra map[string]interface{}, info, appURL string) (url, rid string, err error)
InitLogin initiates a sign in. The caller is expected to save the recovery ID 'rid' to retrieve 'info' later and redirect the browser to the returned 'url'
Click to show internal directories.
Click to hide internal directories.