oauthserver

package
v0.0.0-...-941b1c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 22 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL