Documentation
¶
Index ¶
Constants ¶
View Source
const ( SessionKeyLoggedInUserID = "LoggedInUserID" SessionKeyReturnURI = "ReturnUri" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginHelper ¶
type LoginHelper interface {
CheckHTTPLogin(r *http.Request) (userID uint64, userName string, ok bool)
}
func NewLoginHelper ¶
func NewLoginHelper(userTokenManager usertokenmanagerinters.UserTokenManager) LoginHelper
type OAuth2Server ¶
type OAuth2Server interface {
Go(listen string)
}
func NewOAuth2Server ¶
func NewOAuth2Server(configs OAuth2ServerConfigs, loginHelper LoginHelper, logger l.Wrapper) OAuth2Server
type OAuth2ServerConfigs ¶
type OAuth2ServerConfigs struct { URLLogin string URLAuth string ClientCredentials map[string]config.OAuthClientCredential }
Click to show internal directories.
Click to hide internal directories.