Project

General

Profile

Bug #26314

Could not refresh external usergroup from keycloak

Added by Nikhil Kathole over 1 year ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Authentication
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

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.


Related issues

Related to Foreman - Tracker #28345: SSO using OpenID ConnectNew

Associated revisions

Revision cf7f7513 (diff)
Added by Rahul Bajaj 9 months ago

Fixes #26314 - disable refresh button for external auth sources

History

#1 Updated by Tomer Brisker over 1 year ago

  • Category set to Authentication

#2 Updated by Rahul Bajaj 10 months ago

#3 Updated by The Foreman Bot 9 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7298 added

#4 Updated by The Foreman Bot 9 months ago

  • Fixed in Releases 2.0.0 added

#5 Updated by Rahul Bajaj 9 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker 9 months ago

  • Fixed in Releases 1.24.1 added

#7 Updated by Tomer Brisker 7 months ago

  • Subject changed from [Keycloak-UI] Could not able to refresh external usergroup from keycloak to Could not refresh external usergroup from keycloak

Also available in: Atom PDF