auth

package
v0.0.0-...-860b3a7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitConfig

type InitConfig struct {
	ClientID                   string
	ClientSecret               string
	URL                        string
	RedirectURL                string
	Token_endpoint_auth_method string
	CookieKey                  string
	XSAppName                  string
}

type OIDCConfig

type OIDCConfig struct {
	// contains filtered or unexported fields
}

func InitOIDC

func InitOIDC(appConfig *InitConfig, store sessions.Store, sessionName string) *OIDCConfig

func (*OIDCConfig) AuthN_Handler

func (oc *OIDCConfig) AuthN_Handler(next http.Handler) http.Handler

func (*OIDCConfig) AuthZ_Handler

func (oc *OIDCConfig) AuthZ_Handler(methodScopes appconfig.MethodScopes, next http.Handler) http.Handler

methodScope [{HTTPMethod:* Scope:*}]

func (*OIDCConfig) GetUser

func (oc *OIDCConfig) GetUser(w http.ResponseWriter, r *http.Request)

func (*OIDCConfig) GetUserGroups

func (oc *OIDCConfig) GetUserGroups(w http.ResponseWriter, r *http.Request)

func (*OIDCConfig) HandleCallback

func (oc *OIDCConfig) HandleCallback(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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