-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
BugSomething isn't workingSomething isn't workingUIUser interface related issuesUser interface related issues
Description
Describe the bug
When using AUTH_TYPE=OAUTH2PROXY, the UI displays the default user "Keep" and highlights "Keep" in the tab settings?selectedTab=users&userSubTab=users, instead of showing the actual logged-in user from OAuth2Proxy.
The /api/auth/session endpoint returns a response for AuthType.NOAUTH (as defined in keep-ui/auth.config.ts):
{
"user": {
"name": "Keep",
"email": "keep",
"accessToken": "{\"tenant_id\":\"keep\",\"user_id\":\"keep-user-for-no-auth-purposes\"}",
"tenantId": "keep",
"role": "user",
"tenantIds": [
{
"tenant_id": "keep",
"tenant_name": "Tenant of Keep (tenant_id: keep)"
},
{
"tenant_id": "keep2",
"tenant_name": "Tenant of another Keep (tenant_id: keep2)"
}
]
},
"expires": "2026-01-10T09:01:19.626Z",
"accessToken": "{\"tenant_id\":\"keep\",\"user_id\":\"keep-user-for-no-auth-purposes\"}",
"tenantId": "keep",
"userRole": "user"
}To Reproduce
Steps to reproduce the behavior:
- Set up KeepHQ works with oauth2proxy
- Configure environment variables:
KEEP_OAUTH2_PROXY* - Sign in to KeepHQ via OAuth2Proxy
- Check the current user in the UI’s main tab and in
settings?selectedTab=users&userSubTab=users
Expected behavior
The UI should display the actual logged-in user from OAuth2Proxy — the one created in the database by the backend.
Screenshots
Additional context
Add any other context about the problem here.
dosubot
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingUIUser interface related issuesUser interface related issues