mirror of
https://github.com/btouchard/ackify-ce.git
synced 2026-02-10 07:49:38 -06:00
When users click logout, they are now redirected to the SSO provider's logout endpoint to ensure complete session termination. This prevents users from remaining logged in at the provider level after logging out of the application. Changes: - Add LogoutURL configuration for OAuth providers (Google, GitHub, GitLab) - Implement GetLogoutURL method with post-logout redirect parameter - Update HandleLogout to redirect to SSO logout when configured - Add ACKIFY_OAUTH_LOGOUT_URL environment variable for custom providers - Add tests for both local and SSO logout scenarios
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
# Application Configuration
|
|
APP_NAME=ackify
|
|
APP_DNS=sign.your-domain.com
|
|
ACKIFY_BASE_URL=https://sign.your-domain.com
|
|
ACKIFY_ORGANISATION="Your Organization Name"
|
|
ACKIFY_LOG_LEVEL=info
|
|
|
|
# Database Configuration
|
|
POSTGRES_USER=ackifyr
|
|
POSTGRES_PASSWORD=your_secure_password
|
|
POSTGRES_DB=ackify
|
|
|
|
# OAuth2 Configuration - Generic Provider
|
|
ACKIFY_OAUTH_CLIENT_ID=your_oauth_client_id
|
|
ACKIFY_OAUTH_CLIENT_SECRET=your_oauth_client_secret
|
|
ACKIFY_OAUTH_ALLOWED_DOMAIN=your-organization.com
|
|
|
|
# OAuth2 Provider Configuration
|
|
# Use ACKIFY_OAUTH_PROVIDER to configure popular providers automatically:
|
|
# - "google" for Google OAuth2
|
|
# - "github" for GitHub OAuth2
|
|
# - "gitlab" for GitLab OAuth2 (set ACKIFY_OAUTH_GITLAB_URL if self-hosted)
|
|
# - Leave empty for custom provider (requires manual URL configuration)
|
|
ACKIFY_OAUTH_PROVIDER=google
|
|
|
|
# Custom OAuth2 Provider URLs (only needed if ACKIFY_OAUTH_PROVIDER is empty)
|
|
# ACKIFY_OAUTH_AUTH_URL=https://your-provider.com/oauth/authorize
|
|
# ACKIFY_OAUTH_TOKEN_URL=https://your-provider.com/oauth/token
|
|
# ACKIFY_OAUTH_USERINFO_URL=https://your-provider.com/api/user
|
|
# ACKIFY_OAUTH_LOGOUT_URL=https://your-provider.com/api/logout
|
|
# ACKIFY_OAUTH_SCOPES=openid,email
|
|
|
|
# GitLab specific (if using gitlab as provider and self-hosted)
|
|
# ACKIFY_OAUTH_GITLAB_URL=https://gitlab.your-company.com
|
|
|
|
# Security Configuration
|
|
ACKIFY_OAUTH_COOKIE_SECRET=your_base64_encoded_secret_key
|
|
ACKIFY_ED25519_PRIVATE_KEY=your_base64_encoded_ed25519_private_key
|
|
|
|
# Server Configuration
|
|
ACKIFY_LISTEN_ADDR=:8080
|
|
|
|
# Template Configuration
|
|
# ACKIFY_TEMPLATES_DIR=/custom/path/to/templates |