server

package
v0.0.0-...-5df0669 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssuerToSlug

func IssuerToSlug(issuer string) (string, error)

func RemoveBySlug

func RemoveBySlug(slug string) error

func Save

func Save(server Server) error

func Update

func Update(server Server) error

Types

type Server

type Server struct {
	Slug      string
	Type      string
	CreatedAt time.Time `yaml:"created_at"`
	Metadata  map[string]any
}

func (Server) GenerateCodeVerifier

func (s Server) GenerateCodeVerifier() (string, string, string, error)

func (Server) GetAuthorizationEndpoint

func (s Server) GetAuthorizationEndpoint() string

func (Server) GetSupportedCodeChallengeMethods

func (s Server) GetSupportedCodeChallengeMethods() []string

func (Server) GetSupportedResponseTypes

func (s Server) GetSupportedResponseTypes() []string

func (Server) GetSupportedScopes

func (s Server) GetSupportedScopes() []string

func (Server) GetSupportedTokenEndpointAuthMethods

func (s Server) GetSupportedTokenEndpointAuthMethods() []string

func (Server) GetTokenEndpoint

func (s Server) GetTokenEndpoint() string

func (Server) GetTokenEndpointAuthMethod

func (s Server) GetTokenEndpointAuthMethod() string

func (Server) IsPkceMethodS256Supported

func (s Server) IsPkceMethodS256Supported() bool

func (Server) IsPkceSupported

func (s Server) IsPkceSupported() bool

type Servers

type Servers []Server

func Load

func Load() Servers

func (Servers) FindByIssuer

func (servers Servers) FindByIssuer(slug string) (Server, bool)

func (Servers) FindBySlug

func (servers Servers) FindBySlug(slug string) (Server, bool)

Jump to

Keyboard shortcuts

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