model

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APICallbackRequest

type APICallbackRequest struct {
	Code        string `json:"code"`
	RedirectURI string `json:"redirectUri"`
	State       string `json:"state"`
}

CallbackRequest represents the request body for the callback endpoint from BFF

func (*APICallbackRequest) Validate

func (cr *APICallbackRequest) Validate() error

type APILoginRequest

type APILoginRequest struct {
	Email        *string `json:"email"`
	RedirectURI  *string `json:"redirectUri"`
	ClientID     *string `json:"clientId"`
	ClientSecret *string `json:"clientSecret"`
}

APILoginRequest represents the request body for the login endpoint, handles both authentication initiation and token exchange

func (*APILoginRequest) IsClientCredentials

func (lr *APILoginRequest) IsClientCredentials() bool

func (*APILoginRequest) Validate

func (lr *APILoginRequest) Validate() error

type APILoginResponse

type APILoginResponse struct {
	AuthURL   string `json:"authURL"`
	State     string `json:"state"`
	IDP       string `json:"idp"`
	RealmName string `json:"realmName"`
}

APILoginResponse represents the response for initiating the authentication flow

type APILogoutRequest

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

LogoutRequest represents the request body for logout

func (*APILogoutRequest) Validate

func (lor *APILogoutRequest) Validate() error

type APIRefreshTokenRequest

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

RefreshTokenRequest represents the request body for token refresh

func (*APIRefreshTokenRequest) Validate

func (rtr *APIRefreshTokenRequest) Validate() error

type APITokenResponse

type APITokenResponse struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
	ExpiresIn    int    `json:"expiresIn"`
	TokenType    string `json:"tokenType"`
}

APITokenResponse represents the response returned from Callback handler and RefreshToken handler

Jump to

Keyboard shortcuts

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