- Added a new blueprint for OIDC logout that invalidates the Authentik session and redirects to a specified landing page. - Introduced custom CSS and JS files for branding, improving the visual integration of Authentik flows. - Updated Nginx configuration to serve the new branding assets and handle specific routes for signup and password recovery. - Enhanced the flow completion logic to support OIDC bridge functionality, including session management and redirect handling. - Implemented unit tests for the new OIDC bridge and flow context functionalities to ensure reliability.
27 lines
416 B
Go
27 lines
416 B
Go
package authapi
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestBuildOAuthFlowQuery(t *testing.T) {
|
|
t.Parallel()
|
|
q := buildOAuthFlowQuery(
|
|
"https://dev.ultispace.fr/mail",
|
|
"ulti-backend",
|
|
"state123",
|
|
"challenge456",
|
|
)
|
|
for _, part := range []string{
|
|
"next=",
|
|
"ulti-backend",
|
|
"state123",
|
|
"challenge456",
|
|
} {
|
|
if !strings.Contains(q, part) {
|
|
t.Fatalf("flow query missing %q: %q", part, q)
|
|
}
|
|
}
|
|
}
|