handlers

package
v0.0.0-...-8b7ce6b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateHandler

func AuthenticateHandler(w http.ResponseWriter, r *http.Request)

func ClaimsInfoHandler

func ClaimsInfoHandler(w http.ResponseWriter, r *http.Request)

func PublicKeyHandler

func PublicKeyHandler(w http.ResponseWriter, r *http.Request)

func RefreshHandler

func RefreshHandler(w http.ResponseWriter, r *http.Request)

func RequestTokenHandler

func RequestTokenHandler(w http.ResponseWriter, r *http.Request)

Types

type AccessRefreshKeysResponse

type AccessRefreshKeysResponse struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

type AuthenicatePayload

type AuthenicatePayload struct {
	Identifier string `json:"identifier"`
	Token      string `json:"token"`
}

type PublicKeyResponseItem

type PublicKeyResponseItem struct {
	PublicKeyPEM         string `yaml:"key"`
	ValidFromUnixSeconds int64  `yaml:"validFrom"`
}

type RefreshPayload

type RefreshPayload struct {
	RefreshToken string `json:"refreshToken"`
}

type RequestTokenPayload

type RequestTokenPayload struct {
	Email *string `json:"email,omitempty"`
}

Jump to

Keyboard shortcuts

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