Commit 5e8e654
flowcore-platform
fix: remove audience parameter from Keycloak config to fix production auth
Root cause: Keycloak access tokens with explicit audience claim
(audience: USABLE_CLIENT_ID) were being rejected by the Usable API
with 401 Unauthorized errors.
Changes:
- Remove audience parameter from Keycloak authorization config
- Add token prefix logging to Usable API service for debugging
- Minor middleware formatting cleanup
Impact: Users can now successfully authenticate and access
workspaces in production (https://graphable.usable.dev)
Evidence from groundcover:
- Auth succeeded, tokens stored correctly
- But Usable API returned "Unauthorized" on workspace fetch
- Pattern: successful sign-in followed by API rejection
Solution: Keycloak now issues tokens with default audience
that are compatible with Usable API expectations.
Refs: Usable fragment 9a6f4b48-d34b-4d4a-8267-dae00ebcf25d1 parent 055ceed commit 5e8e654
3 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
80 | 78 | | |
0 commit comments