Documentation ¶
Index ¶
- func GetRedirectNoError(ctx echo.Context, serverURL string) error
- func GetRedirectWithError(ctx echo.Context, l *zerolog.Logger, internalErr error, userErr string) error
- type AuthN
- type SessionHelpers
- func (s *SessionHelpers) GetKey(c echo.Context, k string) (string, error)
- func (s *SessionHelpers) RemoveKey(c echo.Context, k string) error
- func (s *SessionHelpers) SaveAuthenticated(c echo.Context, user *db.UserModel) error
- func (s *SessionHelpers) SaveKV(c echo.Context, k, v string) error
- func (s *SessionHelpers) SaveOAuthState(c echo.Context, integration string) (string, error)
- func (s *SessionHelpers) SaveUnauthenticated(c echo.Context) error
- func (s *SessionHelpers) ValidateOAuthState(c echo.Context, integration string) (isValidated bool, isOAuthTriggered bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedirectNoError ¶
Types ¶
type AuthN ¶
type AuthN struct {
// contains filtered or unexported fields
}
func NewAuthN ¶
func NewAuthN(config *server.ServerConfig) *AuthN
func (*AuthN) Middleware ¶
func (a *AuthN) Middleware(r *middleware.RouteInfo) echo.HandlerFunc
type SessionHelpers ¶
type SessionHelpers struct {
// contains filtered or unexported fields
}
func NewSessionHelpers ¶
func NewSessionHelpers(config *server.ServerConfig) *SessionHelpers
func (*SessionHelpers) GetKey ¶ added in v0.25.0
func (s *SessionHelpers) GetKey( c echo.Context, k string, ) (string, error)
func (*SessionHelpers) RemoveKey ¶ added in v0.25.0
func (s *SessionHelpers) RemoveKey( c echo.Context, k string, ) error
func (*SessionHelpers) SaveAuthenticated ¶
func (s *SessionHelpers) SaveAuthenticated(c echo.Context, user *db.UserModel) error
func (*SessionHelpers) SaveKV ¶ added in v0.25.0
func (s *SessionHelpers) SaveKV( c echo.Context, k, v string, ) error
func (*SessionHelpers) SaveOAuthState ¶
func (s *SessionHelpers) SaveOAuthState( c echo.Context, integration string, ) (string, error)
func (*SessionHelpers) SaveUnauthenticated ¶
func (s *SessionHelpers) SaveUnauthenticated(c echo.Context) error
func (*SessionHelpers) ValidateOAuthState ¶
func (s *SessionHelpers) ValidateOAuthState( c echo.Context, integration string, ) (isValidated bool, isOAuthTriggered bool, err error)
Click to show internal directories.
Click to hide internal directories.