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

First OIDC account is not admin #3496

Closed
Semihal opened this issue Jun 28, 2024 · 2 comments
Closed

First OIDC account is not admin #3496

Semihal opened this issue Jun 28, 2024 · 2 comments

Comments

@Semihal
Copy link

Semihal commented Jun 28, 2024

Bug Report

Description

Bug Summary:
I create first account (in the whole system) with OIDC and found that is not admin.

Steps to Reproduce:

  • Connect OIDC through environ vars.

Expected Behavior:

  • First account is admin.

Actual Behavior:

  • First account is user.

Environment

  • Open WebUI Version: 0.3.6
@Semihal
Copy link
Author

Semihal commented Jun 28, 2024

State of SQLite DB before and after create first user.

Before:

>>> from sqlalchemy import create_engine, text

>>> engine = create_engine("sqlite:////<path>/webui.db")
>>> connection = engine.connect()
>>> connection.execute(text("select * from user")).fetchall()
[]

After:

>>> connection.execute(text("select * from user")).fetchall()
[('894d9af6-3108-45fa-a7db-d92b267db0b9', '<first and last name>', '<my email>', 'user', '/user.png', None, xxxxxxx, xxxxx, xxxxxx, 'null', 'null', 'oidc@<my email>')]

First user has user role :(

@Semihal
Copy link
Author

Semihal commented Jun 28, 2024

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

1 participant