So if I set a user as administrator in the database, they are able to view the administrator panel and administer the site. However, if they login with OIDC (specifically using Keycloak), the database is changed and the user is set back to non admin.
The plugin seems to be writing to the database with each login.
This is only happening when logging in with OIDC, if the user logs in normally, the database isn´t touched and the user remains and administrator.