server

package
v0.0.0-...-f120107 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SESS_IDTOKENCLAIMS = "idtokenclaims"
View Source
const SESS_RAWIDTOKEN = "idtoken"
View Source
const SESS_STATE = "state"

Variables

This section is empty.

Functions

This section is empty.

Types

type Scopes

type Scopes []string

func (*Scopes) Set

func (s *Scopes) Set(value string) error

func (*Scopes) String

func (s *Scopes) String() string

type Server

type Server struct {
	Port               int
	IssuerURL          string
	ClientID           string
	ClientSecret       string
	Scopes             Scopes
	SelfURL            string
	EndSessionEndpoint string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context,
	port int,
	issuerURL string,
	clientID string,
	clientSecret string,
	scopes Scopes,
	selfURL string,
) (*Server, error)

func (*Server) Close

func (server *Server) Close() error

func (*Server) Join

func (server *Server) Join() error

func (*Server) Start

func (server *Server) Start()

func (*Server) Stop

func (server *Server) Stop(ctx context.Context) error

type TemplateData

type TemplateData struct {
	Request     *http.Request
	Writer      http.ResponseWriter
	Server      *Server
	IdTokenJson interface{}
	AuthCodeURL string
	Errors      []string
}

Jump to

Keyboard shortcuts

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