- OAuth authentication via Authentik - WebSocket connection to OpenClaw gateway - Configurable gateway URL with first-run setup - User preferences sync across devices - Multi-user support with custom assistant names - ElevenLabs TTS integration (local + remote) - FCM push notifications for alarms - Voice input via Google Speech API - No hardcoded secrets or internal IPs in tracked files
2.5 KiB
2.5 KiB
Authentik OAuth Configuration for Alfred Mobile
Issue
OAuth login fails with "Authorization failed: Unknown error" because the mobile redirect URI is not configured in Authentik.
Solution
Step 1: Access Authentik Admin
- Go to https://auth.dnspegasus.net/if/admin/
- Log in with admin credentials
Step 2: Update OAuth Provider
- Navigate to Applications → Providers
- Find the provider with Client ID:
QeSNaZPqZUz5pPClZMA2bakSsddkStiEhqbE4QZR - Click to edit
Step 3: Add Mobile Redirect URI
In the Redirect URIs field, add:
alfredmobile://oauth/callback
Important: Keep the existing redirect URIs! You should have:
https://alfred.dnspegasus.net/oauth/callback(web Control UI)https://alfred-app.dnspegasus.net/oauth/callback(proxy)alfredmobile://oauth/callback(mobile app) ← ADD THIS
Step 4: Verify Configuration
After saving, the provider should have:
- Client ID:
QeSNaZPqZUz5pPClZMA2bakSsddkStiEhqbE4QZR - Client type: Confidential (or Public if using PKCE)
- Redirect URIs: All three URIs listed above
- Scopes:
openid profile email
Step 5: Test
- Open Alfred Mobile on tablet
- Tap "Sign In with Authentik"
- Log in with Authentik credentials
- Browser should redirect back to the app
- App should show "Login successful!" toast and "Logged In!" screen
Troubleshooting
Still getting "Unknown error"?
- Check browser address bar when redirecting - does it show
alfredmobile://...? - Verify redirect URI matches exactly (no trailing slash, correct scheme)
- Check Authentik logs for rejected redirect attempts
Browser doesn't redirect back?
- Android may ask "Open with Alfred?" - tap Yes
- If app doesn't open, check AndroidManifest.xml has the intent-filter
"Invalid redirect URI" error?
- The redirect URI in Authentik doesn't match
- Make sure it's exactly:
alfredmobile://oauth/callback(lowercase, no spaces)
Alternative: Create Separate Mobile Provider (Optional)
If you want separate OAuth clients for web vs mobile:
- Create a new OAuth2/OpenID Provider
- Name it "Alfred Mobile"
- Set Client ID to a new value (or keep the same)
- Set Redirect URI to
alfredmobile://oauth/callbackonly - Update
secrets.propertieswith the new Client ID - Rebuild the app
This keeps mobile and web OAuth flows isolated.
Current Config (shared provider):
- Client ID:
QeSNaZPqZUz5pPClZMA2bakSsddkStiEhqbE4QZR - Used by: Web Control UI, OAuth proxy, Mobile app
- Redirect URIs: All three endpoints