ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
6.22k stars 288 forks source link

OIDC Anonymous User Creation Can't be Managed Through Interface #2129

Open algallucci opened 2 months ago

algallucci commented 2 months ago

Environment

Docker

Version

0.15.4

Describe the problem

I'm newly setting up OIDC through Authentik and didn't have it passing the correct scopes through. While the log in originally worked, it was an anonymous login. Now that I have the admin group passing OK, I can't manage the "normal" users that were created, the application returns nothing but I can see that there are two normal users that are there.

I was able to resolve the issue myself by going into the database and removing the offending users and now it works fine.

Logs

homarr | Exporting hostname... homarr | Migrating database... homarr | yarn run v1.22.19 homarr | $ ts-node ./migrate.ts homarr | Done in 1.42s. homarr | Starting production server... homarr | Listening on port 7575 url: http://d86a3f03351f:7575 homarr | homarr | WARN no groups found in profile of oidc user homarr | homarr | homarr | WARN no groups found in profile of oidc user homarr | homarr | Exporting hostname... homarr | Migrating database... homarr | yarn run v1.22.19 homarr | $ ts-node ./migrate.ts homarr | Done in 1.32s. homarr | Starting production server... homarr | Listening on port 7575 url: http://d86a3f03351f:7575 homarr | homarr | WARN no groups found in profile of oidc user homarr | homarr | ℹ Local icons repository directory exists and contains 0 icons homarr | ℹ Local icons repository directory exists and contains 0 icons

Context

In the first screenshot, you can see my two admins (the original one I used username/pass for and the new one with OIDC). Once I click into the normal users (or all), it thinks for a few seconds and then shows nothing. homarr bug screenshot1 homarr bug screenshot2

Please tick the boxes

github-actions[bot] commented 2 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

algallucci commented 2 months ago

I should also mention that I’m happy to take a look at the SQL being executed to help (or anything else you need for that matter).

manuel-rw commented 2 months ago

@Meierschlumpf @SeDemal can you have a look at this issue? Should we fix this before 1.0 (#1993)?

Meierschlumpf commented 1 month ago

Can you maybe provide us the logs in the browser and a screenshot of the full table where all 4 users are shown?

algallucci commented 1 month ago

I am unable to give any more logs as I went in the database and manually removed the users.

That said, the second screenshot I shared does the same as all, the only users I was able to see were admin as it didn’t have the anonymous user. All just hung and didn’t return anything.

Meierschlumpf commented 1 month ago

Okay weird