Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultCookieName = "whawty-nginx-sso" DefaultExpire = 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(conf *Config, infoLog, dbgLog *log.Logger) (*Controller, error)
func (*Controller) Mint ¶
func (c *Controller) Mint(p Payload) (value string, opts Options, err error)
func (*Controller) Options ¶
func (c *Controller) Options() (opts Options)
type Ed25519Config ¶
type Ed25519SignerVerifier ¶
type Ed25519SignerVerifier struct {
// contains filtered or unexported fields
}
func NewEd25519SignerVerifier ¶
func NewEd25519SignerVerifier(context string, conf *Ed25519Config) (*Ed25519SignerVerifier, error)
func (Ed25519SignerVerifier) Algo ¶
func (s Ed25519SignerVerifier) Algo() string
func (Ed25519SignerVerifier) CanSign ¶
func (s Ed25519SignerVerifier) CanSign() bool
func (Ed25519SignerVerifier) Sign ¶
func (s Ed25519SignerVerifier) Sign(payload []byte) ([]byte, error)
func (Ed25519SignerVerifier) Verify ¶
func (s Ed25519SignerVerifier) Verify(payload, signature []byte) error
type SignerVerifier ¶
type SignerVerifierConfig ¶
type SignerVerifierConfig struct { Name string `yaml:"name"` Ed25519 *Ed25519Config `yaml:"ed25519"` }
Click to show internal directories.
Click to hide internal directories.