← sources

How do you manage OAuth/OIDC apps access centrally?

source: reddit (reddit:selfhosted)published 2026-09-29 01:49ingested 2026-09-30 02:40

retained text

I'm running some self hosted services like OpenWebUI, ComfyUI, Immich, and planning to add adventure log soon.  
I also have some self developed apps running.

Current setup: I use WorkOS with a single app as my identity service and manage access via permissions and RBAC, which works perfectly on my self developed apps.  
Identity service (identity.dom.com) takes the WorkOS JWT and sets a domain wide cookie (.dom.com) so all other apps can just use as auth.

ComfyUI does not have auth, so Caddy performs the checks on cookie and it works well-ish, except for period redirect to session renew page.

My issue starts with apps that completely bypass the identity service and use OAuth/OIDC directly. I cannot limit which use can access which apps. While I can in theory use Caddy and the shared cookie check, it breaks the apps XHR requests, and redirects the user to session renew often, which interrupts their experience.

How can I setup proper authorization? ie: I want my family to be able to use immich, but not my friends (photo horders). everyone can use OpenWebUI but only selected members can use ComfyUI, etc.  
Anyone doing/did something similar?

Other things I considered:  
1 Updating the identity service to be OIDC provider: this is last resort, too much changes, maintenance, and responsibility to upkeep.  
2 Proxy the OIDC through identity service: works in theory, but the signature might fail as WorkOS signs the token with their keys and their domain as issuer.

  
\----Edit:

Forgot to mention, some of the self developed services are for my side business clients, they would still want password based login, magik link, etc. based on their preference (one of the reasons I picked WorkOS in first place) so I don't feel PockedID is suitable here (I might be wrong, but not experienced with it.).

document fetched 2026-09-30 00:33 · canonical https://reddit.com/r/selfhosted/comments/1wsxdoc/how_do_you_manage_oauthoidc_apps_access_centrally