Documentation ¶
Index ¶
- Variables
- func Handle(pattern string, handler http.Handler)
- func HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- type AppConfigFile
- type OidcConfig
- type SimpleOIDCAuth
- func (state *SimpleOIDCAuth) GetRemoteUserInfo(r *http.Request) (*UserInfo, error)
- func (state *SimpleOIDCAuth) Handle(pattern string, handler http.Handler)
- func (state *SimpleOIDCAuth) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (state *SimpleOIDCAuth) Handler(h http.Handler) http.Handler
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
View Source
var DefaultConfigFilename = "/etc/openidc_config.yml"
Functions ¶
func HandleFunc ¶
func HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
Types ¶
type AppConfigFile ¶
type AppConfigFile struct {
Openidc OidcConfig
}
type OidcConfig ¶
var DefaultConfigFilename = "config.yml" var defaultOIDCAuth *SimpleOIDCAuth var defaultContext context.Context
type SimpleOIDCAuth ¶
type SimpleOIDCAuth struct { ClientID string ClientSecret string ProviderURL string // contains filtered or unexported fields }
func NewSimpleOIDCAuth ¶
func NewSimpleOIDCAuthFromConfig ¶
func NewSimpleOIDCAuthFromConfig(configFilename *string, ctx *context.Context) (*SimpleOIDCAuth, error)
func (*SimpleOIDCAuth) GetRemoteUserInfo ¶
func (state *SimpleOIDCAuth) GetRemoteUserInfo(r *http.Request) (*UserInfo, error)
Returns the remote username associated with the request or empty string if The user is not found
func (*SimpleOIDCAuth) Handle ¶
func (state *SimpleOIDCAuth) Handle(pattern string, handler http.Handler)
func (*SimpleOIDCAuth) HandleFunc ¶
func (state *SimpleOIDCAuth) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
Click to show internal directories.
Click to hide internal directories.