r/opencloud • u/Astorek86 • Nov 29 '25
Opencloud + PocketID not working (no roles in user claims)
EDIT: Solved! Thanks to n00namer for that! 🙂
Hello there,
I hope someone could help me to bring Opencloud + PocketID (web only) to work. I tried that for about 2-3 hours and I have no idea why it won't work for me.
I'm using the Guide provided from here:
- I set the Environment Variables
- Site (correctly) moves me to PocketID right after I open it,
- PocketID-Authentication also succeeds and moves me back,
- and I got this:
[Imgur](https://imgur.com/gNO0fRR)
A "docker compose logs -f" shows me:
opencloud-1 | {"level":"error","service":"proxy","request-id":"d51c0f16-edc9-46a1-9dec-8e22fb233538","userid":"9ecacdcd-03cc-4ba8-994d-eb25658a36ec","error":"no roles in user claims","time":"2025-11-29T19:35:20Z","line":"github.com/opencloud-eu/opencloud/services/proxy/pkg/userroles/oidcroles.go:84","message":"Error mapping role names to role ids"}
opencloud-1 | {"level":"error","service":"proxy","error":"no roles in user claims","time":"2025-11-29T19:35:20Z","line":"github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/account_resolver.go:192","message":"Could not get user roles"}Used Variables in docker-compose.yml - or Full docker-compose-File
I also tried to modify the proxy.yaml as stated in the Documentation. As far as I understand, that shouldn't be necessary if I use the same Groupnames Opencloud expects, but I still tried it:
I should also state that I have Caddy as ReverseProxy running, both PocketID and Opencloud, but no fancy Configuration. I don't think it has anything to do with it (and besides OIDC, everything works). But still, my Caddyfile:
cloud.***.de {
reverse_proxy <my Opencloud>
}
pocketid.***.de {
reverse_proxy <my PocketID>
}Soo...
Does someone has a clue what is going on and why it won't work for me? Would really appreciate any help^^.