Documentation
¶
Index ¶
- Constants
- func NewClientStore(s store.AuthClients, def *types.AuthClient) *clientStore
- func NewManager(opt options.AuthOpt, log *zap.Logger, cs oauth2.ClientStore, ...) *manage.Manager
- func NewServer(manager oauth2.Manager) *server.Server
- func NewTokenStore(s tokenStorer) *tokenStore
- func NewUserAuthorizer(sm *request.SessionManager, loginURL, clientAuthURL string) server.UserAuthorizationHandler
- func UserIDSerializer(userID uint64, rr ...uint64) string
Constants ¶
View Source
const (
RedirectUriSeparator = " "
)
Variables ¶
This section is empty.
Functions ¶
func NewClientStore ¶
func NewClientStore(s store.AuthClients, def *types.AuthClient) *clientStore
func NewManager ¶
func NewTokenStore ¶
func NewTokenStore(s tokenStorer) *tokenStore
func NewUserAuthorizer ¶
func NewUserAuthorizer(sm *request.SessionManager, loginURL, clientAuthURL string) server.UserAuthorizationHandler
func UserIDSerializer ¶
UserIDSerializer packs user ID and IDs of all roles into space delimited string
Main reason to do this is to simplify JWT claims encoding; we do not have access to user's membership info from there)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.