Skip to content

how to use this with keycloak #3

@f1-outsourcing

Description

@f1-outsourcing

I have tried several ways to submit these roles, but I am constantly getting this default subscriber role.

{
  "sub": "6ae63411-cfe7-4331-9b73-28ff25fddcec",
  "email_verified": true,
  "user-realm-role": [
    "administrator",
    "offline_access",
    "uma_authorization"
  ],
  "name": "Test Test",
  "preferred_username": "xxxxxxx",
  "given_name": "Test",
  "family_name": "Test",
  "email": "test@xxxxxx.eu"
}

when I try to test, I get these errors

ttempt to read property "ID" on bool in ..../wp-content/plugins/oidc-wp-roles/src/Admin/SettingsTabTesting.php on line 96
[06-Feb-2026 23:19:51 UTC] PHP Fatal error: Uncaught TypeError: OidcRoles\Service\MappingsManager::setUser(): Argument #1 ($user) must be of type WP_User, bool given, called in .../wp-content/plugins/oidc-wp-roles/src/Admin/SettingsTabTesting.php on line 102 and defined in ..../wp-content/plugins/oidc-wp-roles/src/Service/MappingsManager.php:106

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions