Repository navigation
OIDC Authentication #1819
|
Hello, I'm setting OIDC authentication on PowerAdmin and I need to lock security account which can log with OIDC on the GUI. I can't enable "auto-provision" because everybody success OIDC login will got an account (even without permissions). And my OIDC provider just authenticate if the person is corporate. And, my OIDC provider can't return "groups" in tokens ... So I choose to manually create account and activate OIDC without "auto-provision". But, when doing that, a password is set to the account and this account can be logged with this password. I don't found option to switch account to OIDC auth method only except in modifying the SQL entry. Do you have an idea to how can I solve my problem ? Maybe, switching authentication method is is futur release ? Is it possible to match a scope in access_token to filter ? Thanks a lot ! |
Replies: 1 comment 2 replies
|
There's no UI switch for this yet. The user form only has an LDAP checkbox, so a manually created account stays The SQL edit is small, though. It makes the row look exactly like one that auto-provisioning would have created: UPDATE users SET auth_method = 'oidc', password = '' WHERE username = 'jdoe';Why that's enough:
Keep
About filtering on a scope or claim: there's no such option. The only gate besides The |
There's no UI switch for this yet. The user form only has an LDAP checkbox, so a manually created account stays
auth_method = 'sql'with its password. Logging in once through OIDC links the identity but deliberately keepssql, so the password keeps working: see the note onshouldUpdateAuthMethod(), "We preserve SQL auth_method to allow users to continue using SQL authentication even after logging in via external providers" (UserProvisioningService.php, v4.5.1).The SQL edit is small, though. It makes the row look exactly like one that auto-provisioning would have created:
Why that's enough: