HOW TO: Create a client_id in Keycloak

×

Warning message

  • You can't delete this newsletter because it has not been sent to all its subscribers.
  • You can't delete this newsletter because it has not been sent to all its subscribers.

This manual is only valid for Micro X rootadministrators.

NOTE: The following description refers to Keycloak v. 23. A similar procedure is also valid for earlier versions with slight differences.

  1. Go to hostname_of_snap4_distribution/auth/;

  2. You will see a login page, for which you will need the credentials for the keycloak administrator (by default the username is admin, the password is found in the generated files of the distribution);
  3. In the main menu on the left, select Clients;
  4. Create a client;
  5. Fill the form with your data, then create the client_id;
  6. The client is now operative, but not fully integrated with the snap4tech configuration yet;
  7. Go to Client scopes and select “ClientID_name”-dedicated (in the image it’s “test-dedicated”);

  8. Add the “username” predefined mapper;

  9. Add a new mapper by configuration, selecting “User Realm Role”;
  10. In the newly opened view, put “role” in the name and “roles” in the Token Claim Name, then save.
HOW TO: Create a client_id in Keycloak | Snap4City

Error

×

Error message

  • Unable to send e-mail. Contact the site administrator if the problem persists.
  • Notice: Trying to get property of non-object in user_is_logged_in() (line 1576 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_is_logged_in() (line 1576 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in og_field_access() (line 578 of /var/www/html/drupal/sites/default/modules/og/og.module).
  • Notice: Trying to get property of non-object in user_access() (line 806 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 818 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 819 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 825 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 828 of /var/www/html/drupal/modules/user/user.module).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/drupal/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/drupal/includes/bootstrap.inc).
  • Error: __clone method called on non-object in og_user_access_entity() (line 2249 of /var/www/html/drupal/sites/default/modules/og/og.module).
The website encountered an unexpected error. Please try again later.