Bug #26314
closedCould not refresh external usergroup from keycloak
Description
Steps:
1. Configure keycloak with foreman as per https://www.theforeman.org/2018/06/using-saml-for-single-sign-on-to-foreman-through-keycloak.html
2. Create usergroup in keycloak ex: named "foremanusergroup"
3. Navigate to usergroup- > create new - > add external usergroup and save
4. Click on usegroup created
5. Navigate to tab external usergroup and click on refresh
Result:
External user group foremanusergroup could not be refreshed and also could not able to sync/see users from external usergroup from keycloak in foreman..
and production.log showed
2019-03-12T08:12:23 [I|app|] Started PUT "/external_usergroups/foremanusergroup/refresh" for IP at 2019-03-12 08:12:23 -0400
2019-03-12T08:12:23 [I|app|f33930ed] Processing by ExternalUsergroupsController#refresh as HTML
2019-03-12T08:12:23 [I|app|f33930ed] Parameters: {"authenticity_token"=>"vY7MwjBBMVJ6lAxemIPwy1lM8kwVx4ZqMQrjmHT6e5KgFmJfSil7ae7VYfri7UD/aGCuoMcYLKLNhzwXUlPueA==", "id"=>"foremanusergroup"}
2019-03-12T08:12:23 [I|app|f33930ed] Current user set to admin (admin)
2019-03-12T08:12:23 [E|app|f33930ed] Failed to save:
2019-03-12T08:12:23 [I|app|f33930ed] Redirected to https://foreman.example.com/usergroups/1-foremanusergroup/edit
2019-03-12T08:12:23 [I|app|f33930ed] Completed 302 Found in 13ms (ActiveRecord: 2.8ms)
Expected:
Successfully refreshed external usergroup and also able to sync/see users from external usergroup from keycloak in foreman.
Updated by Rahul Bajaj almost 5 years ago
- Related to Tracker #28345: SSO using OpenID Connect added
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7298 added
Updated by Rahul Bajaj almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset cf7f751372950cfdee5ce77e5830f918e8a9fffa.
Updated by Tomer Brisker almost 5 years ago
- Subject changed from [Keycloak-UI] Could not able to refresh external usergroup from keycloak to Could not refresh external usergroup from keycloak