webauth

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthConfig

type OAuthConfig struct {
	RedirectURL  string `json:"oauth_base_url" mapstructure:"oauth_base_url"`
	ClientID     string `json:"client_id" mapstructure:"client_id"`
	ClientSecret string `json:"client_secret" mapstructure:"client_secret"`
}

type OAuthMiddleware

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

func (*OAuthMiddleware) ServeHTTP

func (mw *OAuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OAuthPlugin

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

func (*OAuthPlugin) AuthenticatedUser

func (p *OAuthPlugin) AuthenticatedUser(r *http.Request) (*slack.User, error)

func (*OAuthPlugin) InitWebServerAuth

func (p *OAuthPlugin) InitWebServerAuth(bot *bawt.Bot, webserver bawt.WebServer)

Jump to

Keyboard shortcuts

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