freeipa/install/ui
Alexander Bokovoy 2ae316d430 fix canonicalization issue in Web UI
When Kerberos principal alias is used to login to a Web UI, we end up
with a request that is authenticated by a ticket issued in the alias
name but metadata processed for the canonical user name. This confuses
RPC layer of Web UI code and causes infinite loop to reload the page.

Fix it by doing two things:

 - force use of canonicalization of an enterprise principal on server
   side, not just specifying that the principal is an enterprise one;

 - recognize that a principal in the whoami()-returned object can have
   aliases and the principal returned by the server in the JSON response
   may be one of those aliases.

Fixes: https://pagure.io/freeipa/issue/9226

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Armando Neto <abiagion@redhat.com>
2022-08-29 17:30:22 +02:00
..
build WebUI: use python3-rjsmin to minify JavaScript files 2020-05-12 09:50:28 +02:00
css Debian: use -m lesscpy instead of hard-coded name 2019-04-24 14:08:20 +02:00
doc webui: topology graph facet 2015-11-27 15:50:56 +01:00
images Replace old login screen logo with new one 2018-08-21 17:38:32 +02:00
js Create symlink to qunit.js 2017-12-14 18:57:37 +01:00
less WebUI: Fix notification area layout 2019-11-21 16:44:11 +01:00
src fix canonicalization issue in Web UI 2022-08-29 17:30:22 +02:00
test External IdP: add Web UI to manage IdP references 2022-05-10 15:52:41 +03:00
util Also use uglifyjs on CentOS Stream 8 2021-04-01 08:51:41 -04:00
favicon.ico Replace logo images with new one (version 4.7) 2018-08-13 14:25:06 +02:00
Gruntfile.js Make WebUI unit tests to generate results as JUnit 2018-03-16 14:26:48 +01:00
ie.css Fixed display of attributes_widget in IE9 2012-07-17 15:55:44 +02:00
index.html Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
ipa.css WebUI: Fix notification area layout 2019-11-21 16:44:11 +01:00
jsl.conf Fix javascript 'errors' found by jslint 2018-09-27 16:33:25 +02:00
Makefile.am Clean up reset_password.js file from project 2018-09-12 12:41:19 +02:00
package.json Add Gruntfile and package.json to ui directory 2017-12-14 18:57:37 +01:00
README-LICENSE.txt WebUI build: replace uglifyjs with system package 2018-07-12 15:38:01 +02:00
reset_password.html Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
sync_otp.html Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00