Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRegService ¶
type AuthRegService struct { Auth auth.Auther Users users.Users Registry AuthRegistry }
func (*AuthRegService) Register ¶
func (t *AuthRegService) Register(root string, c *restful.Container)
func (*AuthRegService) Shutdown ¶
func (t *AuthRegService) Shutdown()
type AuthRegistration ¶
type AuthRegistration struct { Type ProviderType `json:"type"` Network string `json:"network"` ClientId string `json:"clientid"` ClientSecret string `json:"clientsecret"` Scopes string `json:"scopes"` AuthUrl string `json:"auth_url"` AccessTokenUrl string `json:"accesstoken_url"` UserinfoUrl string `json:"userinfo_url"` PathId string `json:"pathid"` PathName string `json:"pathname"` PathPicture string `json:"pathpicture"` PathCover string `json:"pathcover"` }
type AuthRegistry ¶
type AuthRegistry interface { Create(tp ProviderType, network string, clientid, clientsecrect, scopes, authurl, accessurl, userinfourl, pathid, pathname, pathpicture, pathcover string) (*AuthRegistration, error) Delete(network string) (*AuthRegistration, error) Get(network string) (*AuthRegistration, error) GetAll() ([]AuthRegistration, error) }
type LoginProvider ¶
type LoginProvider struct { Type ProviderType `json:"type"` Network string `json:"network"` ClientId string `json:"clientid"` Scopes string `json:"scopes"` AuthUrl string `json:"authurl"` }
type ProviderType ¶
type ProviderType string
Click to show internal directories.
Click to hide internal directories.