server

package
v0.0.0-...-6b37c95 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeginAuthorizeRequest

type BeginAuthorizeRequest struct {
	ResponseType        ResponseType `query:"response_type"`
	ClientID            string       `query:"client_id"`
	Scope               string       `query:"scope"`
	RedirectURI         string       `query:"redirect_uri"`
	State               string       `query:"state"`
	CodeChallenge       string       `query:"code_challenge"`
	CodeChallengeMethod string       `query:"code_challenge_method"`
}

type GrantType

type GrantType string
const (
	GrantTypeAuthorizationCode GrantType = "authorization_code"
)

type PostAuthorizeRequest

type PostAuthorizeRequest struct {
	ResponseType        ResponseType `form:"response_type"`
	ClientID            string       `form:"client_id"`
	Scope               string       `form:"scope"`
	RedirectURI         string       `form:"redirect_uri"`
	State               string       `form:"state"`
	CodeChallenge       string       `form:"code_challenge"`
	CodeChallengeMethod string       `form:"code_challenge_method"`
	GroupIDs            []uuid.UUID  `form:"group_ids[]"`
	Sig                 string       `form:"sig"`
}

type ResponseType

type ResponseType string
const (
	ResponseTypeCode ResponseType = "code"
)

type Server

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

func New

func New(conf *config.Config) (*Server, error)

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown() error

type Template

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

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data any, c echo.Context) error

type TokenRequest

type TokenRequest struct {
	GrantType    GrantType `form:"grant_type"`
	Code         string    `form:"code"`
	RedirectURI  string    `form:"redirect_uri"`
	ClientID     string    `form:"client_id"`
	CodeVerifier string    `form:"code_verifier"`
}

Jump to

Keyboard shortcuts

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