jsonTypes

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeInfo

type CodeInfo struct {
	VirtualServerName string
	GrantedScopes     []string
	UserId            uuid.UUID
	Nonce             string
	AuthenticatedAt   time.Time
}

func NewCodeInfo

func NewCodeInfo(virtualServerName string, grantedScopes []string, userId uuid.UUID, nonce string, authenticatedAt time.Time) CodeInfo

type DeviceCodeInfo

type DeviceCodeInfo struct {
	VirtualServerName string
	ClientId          string
	GrantedScopes     []string
	Status            string
	UserId            string
	UserCode          string
}

type DeviceCodeStatus

type DeviceCodeStatus string
const (
	DeviceCodeStatusPending    DeviceCodeStatus = "pending"
	DeviceCodeStatusAuthorized DeviceCodeStatus = "authorized"
	DeviceCodeStatusDenied     DeviceCodeStatus = "denied"
)

type LoginInfo

type LoginInfo struct {
	Step                     LoginStep `json:"step"`
	ApplicationDisplayName   string    `json:"applicationDisplayName"`
	VirtualServerDisplayName string    `json:"virtualServerDisplayName"`
	VirtualServerName        string    `json:"virtualServerName"`
	VirtualServerId          uuid.UUID `json:"virtualServerId"`
	RegistrationEnabled      bool      `json:"registrationEnabled"`
	UserId                   uuid.UUID `json:"userId"`
	OriginalUrl              string    `json:"originalUrl"`
	TotpSecret               string    `json:"totpSecret"`
	DeviceCode               string    `json:"deviceCode"`
}

func NewLoginInfo

func NewLoginInfo(virtualServer *repositories.VirtualServer, application *repositories.Application, originalUrl string) LoginInfo

type LoginStep

type LoginStep string
const (
	LoginStepPasswordVerification LoginStep = "passwordVerification"
	LoginStepTemporaryPassword    LoginStep = "temporaryPassword"
	LoginStepEmailVerification    LoginStep = "emailVerification"
	LoginStepOnboardTotp          LoginStep = "onboardTotp"
	LoginStepVerifyTotp           LoginStep = "verifyTotp"
	LoginStepPasskey              LoginStep = "passkey"
	LoginStepFinish               LoginStep = "finish"
)

type PasskeyCreateChallenge

type PasskeyCreateChallenge struct {
	Id        uuid.UUID `json:"id"`
	UserId    uuid.UUID `json:"userId"`
	Challenge string    `json:"challenge"`
}

type PasskeyLoginChallenge

type PasskeyLoginChallenge struct {
	Id                uuid.UUID `json:"id"`
	Challenge         string    `json:"challenge"`
	LoginSessionToken string    `json:"loginSessionToken"`
}

type RefreshTokenInfo

type RefreshTokenInfo struct {
	VirtualServerName string
	UserId            uuid.UUID
	GrantedScopes     []string
	ClientId          string
}

func NewRefreshTokenInfo

func NewRefreshTokenInfo(
	virtualServerName string,
	clientId string,
	userId uuid.UUID,
	grantedScopes []string,
) RefreshTokenInfo

Jump to

Keyboard shortcuts

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