Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After enabling OIDC and authenticating via Authentik I lost admin ability #986

Open
the-bort-the opened this issue Jan 9, 2025 · 2 comments

Comments

@the-bort-the
Copy link

Before enabling OIDC and integrating Authentik, I used the demo user to create a new admin user. I then disabled the demo user and had been using the basic auth for this new admin user.

After configuring OIDC I am able to log into Planka, but after doing so, I noticed my admin user was overwritten by my Authentik user. While this isn't the end of the world, I did noticed I lost my admin capabilities. Looking to the database I tried to update the column is_admin to t within the user_account table.

This worked until I restarted the container. Is there something else needed to permanently provide myself admin? It also seems since I enabled OIDC, I cannot comment out the OIDC variables within docker-compose.yml. It says I need to use SSO. I wonder if I'm locked into SSO now?

  #- OIDC_ISSUER=https://auth.example.com/application/o/planka/
  #- OIDC_CLIENT_ID=$client_id
  #- OIDC_CLIENT_SECRET=$client_secret
@the-bort-the
Copy link
Author

Even a logout / login will change that boolean flag back to false for is_admin

@meltyshev
Copy link
Member

Hi!

To ensure you always have admin privileges, you need to either uncomment OIDC_IGNORE_ROLES=true and modify the role directly in the database, or configure OIDC groups and set OIDC_ADMIN_ROLES=admin with OIDC_ROLES_ATTRIBUTE=groups.

Regarding SSO locking, it can't currently be modified through the UI. However, you can update the is_sso field for a specific user directly in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants