Commit graph

95 commits

Author SHA1 Message Date
Jon Koops
aa86a0b94c Fix various linting issues for Account Console
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-06-03 10:47:40 +02:00
rmartinc
068ce5a61f Modify xpath for account console logout in the webauthn tests
Closes #30024

Signed-off-by: rmartinc <rmartinc@redhat.com>
2024-05-31 15:14:35 +02:00
Stefan Wiedemann
0f6f9543ba
Add oid4vci to the account console (#29174)
closes #25945

Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com>


Co-authored-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-05-31 15:11:32 +02:00
Erik Jan de Wit
5949fd43d0
remove all use of deprecated Select and Dropdown (#29270)
* removed deprecated select

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* some more deprecation removal

working towards fixing: #28197

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed to use new api

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* more deprecation removal

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed merge error

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fix tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* small fix

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed merge error

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* no more default text for SelectOption

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed to use id

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed dropdown in keycloakCard and test fixes

Signed-off-by: mfrances <mfrances@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed lint error

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fix dropdown/select related test failures

Signed-off-by: mfrances <mfrances@redhat.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* i18n label

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fix test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* removed

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed merge error

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: mfrances <mfrances@redhat.com>
Co-authored-by: mfrances <mfrances@redhat.com>
2024-05-30 13:45:58 +02:00
Erik Jan de Wit
e28aa90fcb
use context for adminClient (#28693)
* use context for adminClient

Now we can reuse the components as we can use the adminClient from the context

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* split environment into base, admin and account

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added type to useEnvironment

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-05-08 10:23:43 +02:00
Alexander Schwartz
a9532274e3
Generate translations for locales via built-in Java functionality (#29125)
Closes #29124

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-05-06 09:30:14 +02:00
Ricardo Martin
65bdf1a604
Encode realm name in console URIs (#29102)
Before this fix console uris (including the client redirect uris) did not contain the url encoded realm name and therefore were invalid.

closes #25807

Signed-off-by: Philip Sanetra <code@psanetra.de>
Signed-off-by: rmartinc <rmartinc@redhat.com>


Co-authored-by: Philip Sanetra <code@psanetra.de>
Co-authored-by: rmartinc <rmartinc@redhat.com>
2024-05-02 10:30:06 +02:00
Erik Jan de Wit
957859d846
Automatically re-authenticate on single-logout (#28723)
Automatically forces the user to re-authenticate from the Admin and Account consoles when a single-logout occurs.

Closes #23832
Closes #23833

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-04-22 11:45:15 +00:00
Erik Jan de Wit
014b644724
removed use of deprecated dropdown (#28928)
towards: #28197

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-04-22 08:17:11 +02:00
Erik Jan de Wit
9a418cc53d
remove deprecated component use (#28924)
towards: #28197

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-04-22 07:21:58 +02:00
Erik Jan de Wit
659f0f583f
changed name and added version number (#28157)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-04-19 14:10:34 -04:00
mposolda
c427e65354 Secondary factor bypass in step-up authentication
closes #34

Signed-off-by: mposolda <mposolda@gmail.com>
(cherry picked from commit e632c03ec4dbfbb7c74c65b0627027390b2e605d)
2024-04-19 14:43:53 +02:00
Erik Jan de Wit
6a020d93f1
Moved masthead to ui-shared (#28871)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-04-18 11:16:06 +02:00
Jon Koops
3216e7c781
Only allow a known refferer URI for the Account Console (#28743)
Closes #27628

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-04-16 17:24:22 +02:00
Jon Koops
d3c2475041
Upgrade admin and account console to PatternFly 5 (#28196)
Closes #21345
Closes #21344

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: Mark Franceschelli <mfrances@redhat.com>
Co-authored-by: Hynek Mlnařík <hmlnarik@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2024-04-05 16:37:05 +02:00
Hynek Mlnarik
2f0a9ba547 Ensure referrer link is shown while navigating
Fixes: #27622
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-26 09:40:27 +01:00
Hynek Mlnarik
b01cc231a0 Fix dev env
Fixes: #28143
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-22 12:41:28 +01:00
Erik Jan de Wit
ceed62213d
add beerify to account-ui (#28042)
fixes: #27966

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-20 09:49:01 +01:00
Hynek Mlnařík
19061fb97a
Fix Signing in page (#27935)
Fixes: #27820

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-18 13:19:57 -04:00
Jon Koops
264ab4d268
Handle errors from Keycloak JS in the Account Console (#27721)
Closes #14501

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-08 16:03:03 +01:00
Hynek Mlnarik
26468e11f2 Use correct path to account console
Fixes: #27709

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-08 14:31:32 +01:00
Erik Jan de Wit
7d104dbe9d
no result to parse on success (#27336)
* no result to parse on success

fixes: #27245
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* translate error message

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-08 09:56:23 +01:00
Hynek Mlnařík
250e1137d6
Fix account console tests for dev (#27600)
Fixes: #27604

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-07 12:39:26 +01:00
Jon Koops
7afd75ba08
Use browser router for Account Console (#22192)
Closes #27442

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-04 12:38:28 +00:00
Erik Jan de Wit
82b697400f
Port resource edit from Account Console to new form controls (#27417)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-01 13:35:12 +01:00
Hynek Mlnařík
004805e21d
Add tests for linked accounts (#27299)
Fixes: #21248

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-02-27 07:15:23 +01:00
Hynek Mlnarik
7b384280b6 Tests for applications page
Fixes: #21249

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-02-26 13:24:06 +01:00
Erik Jan de Wit
d03890263e
use the right context (#27237)
fixes: #27234

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-23 07:24:57 +00:00
Pedro Igor
604274fb76 Allow setting an attribute as multivalued
Closes #23539

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>

Co-authored-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-22 12:56:44 +01:00
Erik Jan de Wit
df281df669
added some build options to account-ui (#27033)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-20 15:46:21 +01:00
Erik Jan de Wit
f117210585
permissions can be empty (#27024)
fixes: #27005

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-19 13:45:28 +01:00
Hynek Mlnarik
568b6e0ad7 Add device activity tests
Fixes: #21247
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-02-19 11:14:00 +01:00
Hynek Mlnarik
2914c5821d Add signing-in tests
Fixes: #21245
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-02-14 14:28:13 +01:00
Hynek Mlnarik
18ad2c8b30 Add account console group test
Fixes: #21250

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-02-13 11:39:57 +01:00
Erik Jan de Wit
8d3d94f904
debeerify in account as user profile can have dots (#26680)
fixes: #26635

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-12 19:32:53 +01:00
Erik Jan de Wit
5d39625d82
account library (#26373)
* initial version

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* better init

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added more components

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* moved to public

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* use environment var to enter library mode

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added export field

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-01 16:46:11 +01:00
Erik Jan de Wit
3b3eef2560
Added data-testid to expandable nav (#26445)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-01-24 11:54:17 +01:00
Jon Koops
5bf2d4b6ec
Enable PKCE by default for Keycloak JS (#26412)
Closes #26411

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-01-23 14:04:13 +01:00
Jon Koops
4c5bf596aa
Ensure key prop of credentials list is unique (#26410)
Closes #26409

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-01-23 11:08:20 +00:00
Jon Koops
03b03f3ccd
Add missing translations for WebAuthN in Account Console (#26384)
Closes #26383

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-01-22 16:04:22 +00:00
Erik Jan de Wit
84b2c5eb61
move suspense around lazy component (#26333)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-01-19 12:00:56 +00:00
Erik Jan de Wit
f20de396aa
better path resolve (#26239)
for https://github.com/keycloak/keycloak-quickstarts/pull/523

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-01-19 10:46:08 +01:00
Erik Jan de Wit
118965ca7e
refactored authentication to use the ui-shared (#25730)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-01-12 10:52:50 +01:00
Jon Koops
5eb7363ddd
Promote Account Console v3 to default and deprecate v2 (#25852)
Closes #19663

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2024-01-11 19:42:10 +01:00
ReneZeidler
841e1e3d99
Remove unnecessary tooltip on device activity page (#26078)
Closes #26032

Signed-off-by: René Zeidler <rene.zeidler@gmx.de>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-01-11 12:49:07 +01:00
Erik Jan de Wit
2163fae7ae
use content json also for own menu (#25744)
* use content json also for own menu

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* change isHidden with isVisible

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-01-10 09:38:02 +01:00
Erik Jan de Wit
e6095f901a
Switch locale (#24736)
* Switch locale

fixes: #24082
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2023-12-12 10:59:59 +00:00
Jon Koops
dc0455b73c
Unify utils for interpolated labels under ui-shared (#25203)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2023-12-01 14:41:15 +01:00
Stan Silvert
8a9b83d016
If application has no URL, render text only (#25138)
Fixes #25124

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
2023-11-30 14:05:06 -05:00
Erik Jan de Wit
2e4cd78f61
extend the account-ui with a content.json (#24885)
* extend the account-ui with a content.json

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* use click nav

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* bit more performant

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2023-11-30 16:20:49 +01:00