oauth2server

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Path           string   `json:"path"`
	Public         bool     `json:"public,omitempty"`
	RequiredGroups []string `json:"requiredGroups,omitempty"`
	Command        []string `json:"command"`
	BinaryOutput   bool     `json:"binaryOutput,omitempty"`
	HTMLFile       string   `json:"htmlFile"`
}

type Oauth2Commander

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

func NewOauth2Commander

func NewOauth2Commander(clientID, clientSecret, oidcIssuer, callbackURL string) *Oauth2Commander

func (*Oauth2Commander) AuthMiddleware

func (app *Oauth2Commander) AuthMiddleware(requiredGroups []string, next http.HandlerFunc) http.HandlerFunc

func (*Oauth2Commander) EndpointValues

func (app *Oauth2Commander) EndpointValues(w http.ResponseWriter, r *http.Request)

func (*Oauth2Commander) HandleCommandConfirm

func (app *Oauth2Commander) HandleCommandConfirm(w http.ResponseWriter, r *http.Request, e Endpoint)

func (*Oauth2Commander) HandleCommandRun

func (app *Oauth2Commander) HandleCommandRun(w http.ResponseWriter, r *http.Request, e Endpoint)

func (*Oauth2Commander) Oauth2Callback

func (app *Oauth2Commander) Oauth2Callback(w http.ResponseWriter, r *http.Request)

func (*Oauth2Commander) SessionMiddleware

func (a *Oauth2Commander) SessionMiddleware(handler http.Handler) http.Handler

Jump to

Keyboard shortcuts

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