Logout URL should accept parameters
Description
The logoutURL under settings/auth section is being used for starting user logout process. This string variable does not have an option to get in-process parameters using a "template" string like https://login.universis.io/auth/realms/universis/protocol/openid-connect/logout?redirect_uri=https://registrar.universis.io/&id_token_hint={{token.id_token}} where id_token_hint required by keycloak is under current user state.
Solution
Before sending user to logout URL https://gitlab.com/universis/common/-/blob/main/src/auth/services/authentication.service.ts?ref_type=heads#L150 we should create and parse a lodash template string https://lodash.com/docs/4.17.15#template using sessionStorage.get('currentUser') as param e.g.
import template from 'lodash/template';
// ...
const user = sessionStorage.get('currentUser');
const logoutTemplate = template(settings.logoutURL);
const logoutURL = logouteTemplate(user);
Important Note: This change should apply in both main and v15 branches.
Note about id_token: The id_token attribute is available when openid scope has been included into access_token scopes.