- Added a new handler for completing authentication flows, including session validation and cookie management. - Implemented flow rate limiting to restrict the number of flow start requests per client IP. - Enhanced flow session management with Redis support for persistent session storage. - Updated existing handlers to integrate the new flow completion logic and error handling for various session states. - Introduced unit tests for the new flow completion and rate limiting functionalities to ensure reliability.
11 lines
344 B
Go
11 lines
344 B
Go
package authentik
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrFlowSessionNotFound = errors.New("flow session not found")
|
|
ErrFlowSessionSlugMismatch = errors.New("flow session slug mismatch")
|
|
ErrFlowSessionNotCompleted = errors.New("flow session not completed")
|
|
ErrFlowSessionAlreadyCompleted = errors.New("flow session already completed")
|
|
)
|