70 Commits

Author SHA1 Message Date
Alexander Schwartz
b90fec41ff
[26.2] Only allow LDAP URL references when following referrals (#286)
* Only allow LDAP URL references when following referrals

Closes #280

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

* Updating docs

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>

* Adjusting CI for slowness

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>

---------

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-11-21 11:20:33 +01:00
Stian Thorgersen
f31774dcb5
Fix permissions for conditional steps (#39109)
Signed-off-by: stianst <stianst@gmail.com>
2025-04-22 09:26:23 +00:00
Erik Jan de Wit
ddc3e6e77e
initial version of the test and some refactor (#38388)
* initial version of the test and some refactor

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

* added policy test

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

* remove query all users

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

* resourceType instead of type

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

* small fix

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

* set selected value

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

* small ui issues

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

* fixed test

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

* made tests more atomic

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

* change to use v2

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

* skip for now

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

* org test fix

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

* remove old permissions test

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

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2025-03-26 09:32:13 -04:00
Miquel Simon
a5b614e659 Fix Playwright report name in JavaScript CI
Closes #38282

Signed-off-by: Miquel Simon <msimonma@redhat.com>
2025-03-25 20:57:04 +01:00
Bruno Oliveira da Silva
21c903e562
Ensure that the project’s automated workflows tokens are set to read-only by default (#37643)
Signed-off-by: Bruno Oliveira da Silva <bruno@abstractj.com>

Closes #33544
2025-03-17 15:48:37 +01:00
Erik Jan de Wit
095a194ec3
playwright rewrite (#36276)
* initial version playwright rewrite

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

* small refactor cancel button

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

* added policies ciba to playwright

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

* added policies spec

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

* added flow tests

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

* added axe tests for flows

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

* added more tests for authentication flows

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

* added client advanced test to playwright

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

* added client authorization tests

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

* added axe check

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

* added test for initial access token

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

* added registration policies test

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

* added client scope test

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

* added client scope tests

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

* updated dependency

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

* added client role test

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

* fix running playwright tests

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

* added client saml

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

* added saml test

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

* added events test

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

* more groups tests

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

* added group role test

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

* added realm settings i18n tests

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

* added oidc and saml test for identity provider

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

* fix tests

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

* update ci to run playwright instead of cypress

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

* add masthead test and use component instead

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

* added organizations test

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

* added export realm test

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

* added partial import

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

* added realm roles

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

* add realm client policies test

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

* added client profile tests

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

* merge errors

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

* realm settings

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

* added realm settings general test

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

* add login tab and localization

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

* realm settings accessibility test

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

* added user profile test

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

* added realm create test

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

* added realm user registration spec

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

* added sessions test

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

* added kerberos test

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

* added ldap mapper test

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

* added ldap test

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

* removed cypress tests

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

* added user tab test

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

* run playwright tests instead of jest tests

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

* fixed some 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 some more tests

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>

* fix test

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

* removed cypress

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

* remove cyperss

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

* Remove some more workflow remanants from Cypress

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

* lock file

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

* pr review

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: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2025-03-12 07:35:22 -04:00
Jon Koops
387aac1167
Perform some regular maintenance for JS (#37247)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2025-02-13 12:32:44 +01:00
Jon Koops
48a6450b73
Fix broken JavaScript CI (#37007)
Closes #36998

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2025-02-04 10:23:27 +01:00
Erik Jan de Wit
f8f2b476a1
added RETRY_COUNT environment variable (#35318)
* added RETRY_COUNT environment variable

fixes: #35225

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

* Update js/apps/admin-ui/cypress.config.ts

Co-authored-by: Stian Thorgersen <stian@redhat.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
2024-12-17 08:10:43 -05:00
Jon Koops
faf36dd2f0
Move root PNPM workspace to js directory (#35456)
Closes #35455

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-11-29 17:20:32 +01:00
vramik
b1ff9511d1 Fine grained admin permissions feature V2
Closes #34563

Signed-off-by: vramik <vramik@redhat.com>
2024-11-07 10:55:42 +01:00
Stian Thorgersen
058538ca08
Revert "Apply the principle of least privilege for GitHub workflows (#33534)" (#33626)
This reverts commit 61c6bd5acef1313cdcc707dbd8b9cede6bf672f6.
2024-10-07 08:41:43 +02:00
Bruno Oliveira da Silva
61c6bd5ace
Apply the principle of least privilege for GitHub workflows (#33534)
Closes #33544

Signed-off-by: Bruno Oliveira da Silva <bruno@abstractj.com>
2024-10-04 14:17:35 +02:00
Jon Koops
d60dee7622
Remove the UMD distribution of Keycloak JS (#33080)
Closes #32826

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-09-30 14:05:18 +02:00
Peter Zaoral
1b5fe5437a
Warnings for temporary admin user and service account (#31387)
* UI banner, labels and log messages are shown when temporary admin account is used
* added UI tests that check the elements' presence

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
2024-08-21 09:30:24 +02:00
Alexander Schwartz
653f67768e
Aligning the JS build and caching with the main build (#31846)
Closes #31845

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2024-08-13 09:05:29 +02:00
Steven Hawkins
4970a9b729
fix: deprecate KEYCLOAK_ADMIN and KEYCLOAK_ADMIN_PASSWORD
closes: #30658

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-07-11 18:07:57 +02:00
Erik Jan de Wit
0caca2d6f5
make admin-ui build as a library (#30268)
* make admin-ui build as a library

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

* fix merge errors

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

* fix input

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

* added null check

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

* renamed workspace

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

* PR review

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

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-07-05 12:48:10 -04:00
Hynek Mlnarik
287916997e Show admin console header if serverinfo is forbidden
Fixes: #30683

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-06-28 20:22:16 +02:00
Jon Koops
c7361ccf6e
Run the Vite dev server through the Keycloak server (#27311)
Closes #19750
Closes #28643
Closes #30115

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-06-12 11:55:14 +02:00
Martin Bartoš
262fc09edc
OpenJDK 21 support (#28518)
* OpenJDK 21 support

Closes #28517

Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* x509 SAN UPN other name is not handled in JDK 21 (#904)

closes #29968

Signed-off-by: mposolda <mposolda@gmail.com>

---------

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: mposolda <mposolda@gmail.com>
Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Co-authored-by: Marek Posolda <mposolda@gmail.com>
2024-06-03 14:17:28 +02:00
Jon Koops
c17023270c
Use correct PNPM workspace names on CI (#29973)
Closes #29976

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
Co-authored-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-06-03 13:42:44 +02:00
Hynek Mlnařík
e2ce0a7ece
Do not fail fast in JS CI (#30035)
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-06-03 10:59:52 +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
Hynek Mlnařík
5ec3d759d9
Randomize Cypress TS and fix tests failing after this change (#29350)
* Fix user_fed_ldap_test

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>

* Fix clients_test

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>

* Generate random seed to shuffle tests

Signed-off-by: Jon Koops <jonkoops@gmail.com>

* Remove async / await

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>

* Fix async test

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>

---------

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-05-08 09:33:21 -04:00
Jon Koops
88d5970944
Upgrade artifact actions to latest version (#28483)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-04-15 17:14:00 +02:00
Jon Koops
ab1d1ae3d5
Move all JavaScript projects into single PNPM workspace (#24537)
Closes #24571

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-04-02 16:14:58 +02:00
Jon Koops
4e5ed3ebef
Always upload Cypress test videos on failures (#27423)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-01 14:09:03 +00:00
Jon Koops
4eb71c4f40
Record Cypress test failures in video (#27232)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-02-27 14:03:34 +01:00
Jon Koops
b1a6a5a1b0
Run Cypress tests in parallel using cypress-split (#20685)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-02-20 11:10:54 +01:00
Peter Zaoral
d9f8a1bf4e
Testing Keycloak with nightly Quarkus releases (#23407)
Closes #23322

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
2024-01-23 09:43:31 +01:00
mposolda
692aeee17d Enable user profile by default
closes #25151

Signed-off-by: mposolda <mposolda@gmail.com>
2024-01-11 12:48:44 -03:00
Alexander Schwartz
5e0e7254a0
Add the build step to the overall status check (#25982)
Closes #25981

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2024-01-09 08:39:43 +01:00
Alexander Schwartz
d6d3ba35d4
Revert "Bump actions/download-artifact from 3 to 4" (#25854)
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>

Closes #25853
2024-01-02 16:01:00 +01:00
dependabot[bot]
04e7f9a245 Bump actions/download-artifact from 3 to 4
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 09:18:24 +01:00
dependabot[bot]
76b0e3b6fe Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 09:18:24 +01:00
dependabot[bot]
b057e92131 Bump actions/setup-java from 3 to 4
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 09:52:48 -03:00
Alexander Schwartz
672cef89d2
Align maven parameters across GitHub actions (#25117)
Closes #25116

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2023-12-05 08:30:11 +01:00
Jon Koops
fbeb79f585
Build Account Console v2 for Cypress tests on CI (#24964)
Closes #24968
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2023-11-23 12:35:31 +01:00
Hynek Mlnarik
5ec394b258 Transient sessions: UX improvements
Closes: #24279

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2023-11-21 08:31:56 +01:00
Jon Koops
62d5eb0965
Include react and react-dom as external dependencies (#24843)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2023-11-20 16:34:03 +00:00
Jon Koops
47d9ae71c4
Revert the new welcome screen experience (#23446)
This reverts commit bcab75a7ef19a5a7edc0944aa36ad910c29204b9.
2023-09-21 16:03:00 +00:00
Jon Koops
bcab75a7ef
Add new version of Welcome theme based on PatternFly 5 (#23008) 2023-09-14 08:24:17 -04:00
Jon Koops
403d678e00
Refactor tests to use new LinkedIn provider (#23133)
Co-authored-by: stianst <stianst@gmail.com>
2023-09-11 11:49:48 +02:00
Jon Koops
c18be7c7d9
Enable deprecated LinkedIn OAuth to pass Cypress tests (#23090) 2023-09-08 11:45:03 +00:00
dependabot[bot]
29a9f48d4e
Bump actions/checkout from 3 to 4 (#22963)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 07:40:06 -04:00
Alexander Schwartz
8286b8b31f
Status check should fail if "conditional" step fails (#22948)
Closes #22947
2023-09-05 08:34:41 +02:00
Erik Jan de Wit
1b722477a2
Add tests to the Account Console for user profile (#22576) 2023-08-31 11:32:39 +02:00
dependabot[bot]
7e9e170b1f
Bump cypress-io/github-action from 5 to 6 (#22595)
Bumps [cypress-io/github-action](https://github.com/cypress-io/github-action) from 5 to 6.
- [Release notes](https://github.com/cypress-io/github-action/releases)
- [Changelog](https://github.com/cypress-io/github-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cypress-io/github-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: cypress-io/github-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22 06:58:45 -04:00
Jon Koops
d6eb642a65
Add Account Console E2E tests (Playwright) to CI (#21496) 2023-08-14 16:41:58 +02:00