v1

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Path = "/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type V1

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

func New

func New(options options.Options, logger types.Logger) *V1

func (*V1) App

func (v *V1) App() *fiber.App

func (*V1) OpenAPI

func (v *V1) OpenAPI() *huma.OpenAPI

type V1LogoutRequest

type V1LogoutRequest struct {
	SessionCookie string `cookie:"authentication_session" doc:"session cookie"`
}

type V1LogoutResponse

type V1LogoutResponse struct {
	SessionCookie *http.Cookie `header:"Set-Cookie" doc:"clear session cookie"`
}

type V1PublicResponse

type V1PublicResponse struct {
	Body V1PublicResponseBody
}

type V1PublicResponseBody

type V1PublicResponseBody struct {
	PublicKey           string                       `json:"public_key" doc:"base64 encoded public key"`
	PreviousPublicKey   string                       `json:"previous_public_key,omitempty" doc:"base64 encoded previous public key"`
	RevokedSessions     []string                     `json:"revoked_sessions" doc:"list of revoked session IDs"`
	InvalidatedSessions []manager.InvalidatedSession `json:"invalidated_sessions" doc:"list of invalidated sessions"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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