web

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SD_ERR_MISC  = 0 // internal issue
	SD_ERR_CODE  = 1 // no or unexpected code value in session
	SD_ERR_STATE = 2 // no or unexpected state value in session
	SD_ERR_TOKEN = 3 // no or unexpected token value in session
	SD_ERR_PARAM = 4 // missing query parameters
	SD_ERR_ILLEG = 5 // operation on data not owned by requestor
)

Variables

This section is empty.

Functions

func InitStepdance

func InitStepdance(s *Stepdance, bind string) *http.Server

Types

type PageData

type PageData struct {
	Certificates cert.DbCertificates
	Subject      string
	State        string
	Error        template.HTML
	SessionId    string
}

type Stepdance

type Stepdance struct {
	Oauth2Config oauth2.Config
	OidcConfig   *oidc.Config
	OidcProvider *oidc.Provider
	Ctx          context.Context
	Verifier     *oidc.IDTokenVerifier

	Step *cert.Step
	// contains filtered or unexported fields
}

func NewStepdance added in v0.0.2

func NewStepdance(c core.Config) (*Stepdance, string)

type Templates

type Templates struct {
	BadState             *template.Template
	CertificateRequest   *template.Template
	CertificateRequestNA *template.Template
	Illegal              *template.Template
	Index                *template.Template
	InternalError        *template.Template
	MissingCode          *template.Template
	MissingParameter     *template.Template
	MissingToken         *template.Template
}

Jump to

Keyboard shortcuts

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