Documentation
¶
Index ¶
- Constants
- Variables
- func InitAuthService() staging.Details
- func NewMux(sysCfg *config.Config, params authServiceMuxParams) services.Mux
- type AuthClientExistsError
- type AuthClientNotExistsError
- type InvalidClientIDError
- type InvalidPKCECodeError
- type InvalidPKCEFlowError
- type InvalidPasswordlessFlowError
- type InvalidSessionError
- type InvalidUsernameError
- type ServicePC
- type UserDisabledError
Constants ¶
View Source
const ( CookieAccessTokenKey = "access-token" CookieRefreshTokenKey = "refresh-token" )
Variables ¶
View Source
var ( ErrUserDisabled = errors.New("user disabled") ErrInvalidPKCECode = errors.New("invalid pkce code") ErrInvalidPasswordlessFlow = errors.New("invalid passwordless flow") ErrInvalidPKCEFlow = errors.New("invalid pkce flow") ErrInvalidUsername = errors.New("invalid username") ErrInvalidSession = errors.New("invalid session") ErrAuthClientExists = errors.New("auth client exists") ErrAuthClientNotExists = errors.New("auth client not exists") ErrInvalidClientID = errors.New("invalid client id") )
Functions ¶
func InitAuthService ¶
Types ¶
type AuthClientExistsError ¶
type AuthClientExistsError struct{}
func (*AuthClientExistsError) Error ¶
func (e *AuthClientExistsError) Error() string
func (*AuthClientExistsError) HTTPResponse ¶
func (e *AuthClientExistsError) HTTPResponse() apires.ErrorDetails
func (*AuthClientExistsError) Is ¶
func (e *AuthClientExistsError) Is(target error) bool
type AuthClientNotExistsError ¶
type AuthClientNotExistsError struct{}
func (*AuthClientNotExistsError) Error ¶
func (e *AuthClientNotExistsError) Error() string
func (*AuthClientNotExistsError) HTTPResponse ¶
func (e *AuthClientNotExistsError) HTTPResponse() apires.ErrorDetails
func (*AuthClientNotExistsError) Is ¶
func (e *AuthClientNotExistsError) Is(target error) bool
type InvalidClientIDError ¶
type InvalidClientIDError struct {
// contains filtered or unexported fields
}
func (*InvalidClientIDError) Error ¶
func (e *InvalidClientIDError) Error() string
func (*InvalidClientIDError) HTTPResponse ¶
func (e *InvalidClientIDError) HTTPResponse() apires.ErrorDetails
func (*InvalidClientIDError) Is ¶
func (e *InvalidClientIDError) Is(target error) bool
func (*InvalidClientIDError) Unwrap ¶
func (e *InvalidClientIDError) Unwrap() error
type InvalidPKCECodeError ¶
type InvalidPKCECodeError struct{}
func (*InvalidPKCECodeError) Error ¶
func (e *InvalidPKCECodeError) Error() string
func (*InvalidPKCECodeError) HTTPResponse ¶
func (e *InvalidPKCECodeError) HTTPResponse() apires.ErrorDetails
func (*InvalidPKCECodeError) Is ¶
func (e *InvalidPKCECodeError) Is(target error) bool
type InvalidPKCEFlowError ¶
type InvalidPKCEFlowError struct{}
func (*InvalidPKCEFlowError) Error ¶
func (e *InvalidPKCEFlowError) Error() string
func (*InvalidPKCEFlowError) HTTPResponse ¶
func (e *InvalidPKCEFlowError) HTTPResponse() apires.ErrorDetails
func (*InvalidPKCEFlowError) Is ¶
func (e *InvalidPKCEFlowError) Is(target error) bool
type InvalidPasswordlessFlowError ¶
type InvalidPasswordlessFlowError struct{}
func (*InvalidPasswordlessFlowError) Error ¶
func (e *InvalidPasswordlessFlowError) Error() string
func (*InvalidPasswordlessFlowError) HTTPResponse ¶
func (e *InvalidPasswordlessFlowError) HTTPResponse() apires.ErrorDetails
func (*InvalidPasswordlessFlowError) Is ¶
func (e *InvalidPasswordlessFlowError) Is(target error) bool
type InvalidSessionError ¶
type InvalidSessionError struct{}
func (*InvalidSessionError) Error ¶
func (e *InvalidSessionError) Error() string
func (*InvalidSessionError) HTTPResponse ¶
func (e *InvalidSessionError) HTTPResponse() apires.ErrorDetails
func (*InvalidSessionError) Is ¶
func (e *InvalidSessionError) Is(target error) bool
type InvalidUsernameError ¶
type InvalidUsernameError struct{}
func (*InvalidUsernameError) Error ¶
func (e *InvalidUsernameError) Error() string
func (*InvalidUsernameError) HTTPResponse ¶
func (e *InvalidUsernameError) HTTPResponse() apires.ErrorDetails
func (*InvalidUsernameError) Is ¶
func (e *InvalidUsernameError) Is(target error) bool
type ServicePC ¶
type ServicePC interface {
GetSessionInfo(ctx context.Context, sessionID uuid.UUID) (uuid.UUID, error)
RefreshTokenFlowHTTPCookie(ctx context.Context, w http.ResponseWriter, sessionID uuid.UUID) (uuid.UUID, error)
}
func NewServicePC ¶
type UserDisabledError ¶
type UserDisabledError struct{}
func (*UserDisabledError) Error ¶
func (e *UserDisabledError) Error() string
func (*UserDisabledError) HTTPResponse ¶
func (e *UserDisabledError) HTTPResponse() apires.ErrorDetails
func (*UserDisabledError) Is ¶
func (e *UserDisabledError) Is(target error) bool
Source Files
¶
- auth.go
- auth_response_models.go
- errors.go
- get_session_info.go
- list_auth_clients.go
- login.go
- logout.go
- new_auth_client.go
- new_pkce_code.go
- passwordless_flow.go
- passwordless_flow_resend.go
- passwordless_flow_start.go
- passwordless_flow_verify.go
- permission_management.go
- pkce_token_exchange.go
- refresh_token_flow.go
- refresh_token_flow_http_cookie.go
- remove_auth_client.go
- service_details.go
- service_init.go
- service_mux.go
- service_pc.go
- signup.go
- valid.go
Click to show internal directories.
Click to hide internal directories.