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
Click to show internal directories.
Click to hide internal directories.