Documentation ¶
Index ¶
- Variables
- type App
- type Endpoints
- type HasIdentity
- func (HasIdentity) CaddyModule() caddy.ModuleInfo
- func (hasIdentity *HasIdentity) Match(r *http.Request) bool
- func (hasIdentity *HasIdentity) Provision(ctx caddy.Context) error
- func (hasIdentity *HasIdentity) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (hasIdentity *HasIdentity) Validate() error
- type Provider
- func (Provider) CaddyModule() caddy.ModuleInfo
- func (provider *Provider) Callback(w http.ResponseWriter, r *http.Request) error
- func (provider *Provider) DeleteSession(session *Session)
- func (provider *Provider) DumpSession(w http.ResponseWriter, r *http.Request) error
- func (provider *Provider) GetSession(r *http.Request) *Session
- func (provider *Provider) LoadRemoteConfig() error
- func (provider *Provider) Login(w http.ResponseWriter, r *http.Request) error
- func (provider *Provider) Logout(w http.ResponseWriter, r *http.Request) error
- func (provider *Provider) Provision(ctx caddy.Context) error
- func (provider *Provider) RandString() string
- func (provider *Provider) RefreshUserInfo(session *Session) error
- func (provider *Provider) RegisterSession(r *http.Request, token *oauth2.Token) (string, *Session, error)
- func (provider *Provider) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (provider *Provider) Sign(r *http.Request) ([]byte, error)
- func (provider *Provider) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (provider *Provider) Validate() error
- func (provider *Provider) Values() map[string]interface{}
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnableToGetProviderConfig = errors.New("Unable to get provider config")
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (App) CaddyModule ¶
func (App) CaddyModule() caddy.ModuleInfo
func (*App) RegisterProvider ¶
type HasIdentity ¶
type HasIdentity struct {
// contains filtered or unexported fields
}
func (HasIdentity) CaddyModule ¶
func (HasIdentity) CaddyModule() caddy.ModuleInfo
func (*HasIdentity) Provision ¶
func (hasIdentity *HasIdentity) Provision(ctx caddy.Context) error
func (*HasIdentity) UnmarshalCaddyfile ¶
func (hasIdentity *HasIdentity) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*HasIdentity) Validate ¶
func (hasIdentity *HasIdentity) Validate() error
type Provider ¶
type Provider struct { *oidc.Provider ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` Scopes []string `json:"scopes"` Endpoints Endpoints `json:"endpoints"` OAuthValidateURL string `json:"oauth_validate_url"` URL string `json:"provider"` CookiePath string `json:"cookie_path"` CookieNameKey string `json:"cookie_name_key"` CookieNameProvider string `json:"cookie_name_provider"` CookieNameState string `json:"cookie_name_state"` CookieNameRedirect string `json:"cookie_name_redirect"` DebugPath string `json:"debug_path"` LoginPath string `json:"login_path"` LogoutPath string `json:"logout_path"` CallbackPath string `json:"callback_path"` LogoutRedirect string `json:"logout_redirect"` DefaultRoot string `json:"default_root"` LazyLoad bool `json:"lazy_load"` Debug bool `json:"debug"` UserInfo bool `json:"user_info"` RemoteConfigTimeout string `json:"remote_config_timeout"` // contains filtered or unexported fields }
func (Provider) CaddyModule ¶
func (Provider) CaddyModule() caddy.ModuleInfo
func (*Provider) DeleteSession ¶
func (*Provider) DumpSession ¶
func (*Provider) LoadRemoteConfig ¶
func (*Provider) RandString ¶
func (*Provider) RefreshUserInfo ¶
func (*Provider) RegisterSession ¶
func (*Provider) UnmarshalCaddyfile ¶
Click to show internal directories.
Click to hide internal directories.