Commit graph

892 commits

Author SHA1 Message Date
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
Erik Jan de Wit
c6210b773f
added better default value (#27594)
fixes: #27548

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-07 10:04:38 +01:00
Erik Jan de Wit
4feb776d3d
fixed the search attributes when federation is enabled (#27550)
fixes: #23701

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-07 10:03:56 +01:00
Erik Jan de Wit
33219a334b
changed to use ui-shared (#27428)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-07 10:02:57 +01:00
Erik Jan de Wit
b0b967d8d4
migrated user forms to ui-shared (#27593)
* migrated user forms to ui-shared

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

* review comments

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

* fixed test

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

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-03-06 16:06:13 +00:00
agagancarczyk
65448ff8c3
Changed KeyckloakTextInput to TextControl in NewRealmForm (#27596)
* Replaced KeycloakTextInput with TextControl

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* changed Switch to DefaultSwitchControl

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* Fix `defaultValue` behaviour for `SwitchControl`

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

* fixing test

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* fixing test

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

---------

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-03-06 14:07:49 +00:00
agagancarczyk
8689208e3a
fixed messages and replaced KeyckloakTextInput (#27591)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2024-03-06 10:25:57 +00:00
Jon Koops
3e46810b37
Port regex client authorization policy to new form controls (#27569)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-06 10:26:25 +01:00
Jon Koops
658c033cf7
Port common authorization policy fields to new form controls (#27571)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-06 10:25:24 +01:00
Erik Jan de Wit
b486972485
migrated some of the controls to ui-shared (#27424)
* migrated some of the controls to ui-shared

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

* Update js/apps/admin-ui/src/user-federation/ldap/LdapSettingsGeneral.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/LdapSettingsGeneral.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/LdapSettingsKerberosIntegration.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/LdapSettingsSearching.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx

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

* Update js/apps/admin-ui/src/user-federation/ldap/LdapSettingsGeneral.tsx

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

* Apply suggestions from code review

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

* review fixes

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

* fixed test

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

* tests

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

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-03-06 08:40:54 +00:00
dependabot[bot]
61c3edcab8 Bump @types/react-dom from 18.2.19 to 18.2.20 in /js
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.2.19 to 18.2.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 09:24:41 +01:00
dependabot[bot]
a68c4e3014 Bump cypress-split from 1.20.1 to 1.21.0 in /js
Bumps [cypress-split](https://github.com/bahmutov/cypress-split) from 1.20.1 to 1.21.0.
- [Release notes](https://github.com/bahmutov/cypress-split/releases)
- [Commits](https://github.com/bahmutov/cypress-split/compare/v1.20.1...v1.21.0)

---
updated-dependencies:
- dependency-name: cypress-split
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 09:15:01 +01:00
dependabot[bot]
a7df0392df Bump @types/react from 18.2.62 to 18.2.63 in /js
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.62 to 18.2.63.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 08:55:51 +01:00
Jon Koops
a3c6139a2f
Port group client authorization policy to new form controls (#27570)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-05 19:56:02 +01:00
Jon Koops
d1c9e97a12
Port import form to new form controls (#27568)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-05 18:10:38 +00:00
Jon Koops
d124b02a95
Port logout panel to new form controls (#27419)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-05 18:04:47 +01:00
Jon Koops
96841f8d5b
Port client login settings to new form controls (#27414)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-05 17:02:07 +00:00
Jon Koops
4ef38a783a
Fix broken tests for authenticators in Admin Console (#27566)
Closes #27565

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-05 16:29:40 +00:00
Pedro Igor
d12711e858 Allow fetching roles when evaluating role licies
Closes #20736

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2024-03-05 15:54:02 +01:00
dependabot[bot]
3f3375bc83
Bump vite from 5.1.4 to 5.1.5 in /js (#27518)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.4 to 5.1.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.1.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:49:04 +01:00
dependabot[bot]
6851f14401 Bump @types/react from 18.2.61 to 18.2.62 in /js
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.61 to 18.2.62.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 08:56:20 +01:00
Hynek Mlnarik
7e41aa9880 Show expiration only when explicitly requested
Fixes: #20792

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-05 07:44:42 +01:00
dependabot[bot]
18f7b0fcfd
Bump @playwright/test from 1.42.0 to 1.42.1 in /js (#27462)
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.42.0 to 1.42.1.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.42.0...v1.42.1)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 14:48:35 +01:00
dependabot[bot]
1d0eaa5a41
Bump react-hook-form from 7.50.1 to 7.51.0 in /js (#27466)
Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.50.1 to 7.51.0.
- [Release notes](https://github.com/react-hook-form/react-hook-form/releases)
- [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md)
- [Commits](https://github.com/react-hook-form/react-hook-form/compare/v7.50.1...v7.51.0)

---
updated-dependencies:
- dependency-name: react-hook-form
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 14:47:56 +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
agagancarczyk
f49efd0a51
Adding translations when a new attribute is created (#27313)
* reimplemented attribute translations

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* added translations refresh

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* improvement

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* feedback

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* feedback

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* refactor

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* refactor

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* added type

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

---------

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2024-03-04 11:39:20 +00:00
Peter Keuter
6609b591e1
Append required user actions and only when the password is temporary (#27185)
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
2024-03-01 16:43:07 +01:00
Jon Koops
66e2591792
Fix flaky Cypress test for user profile (#27427)
Closes #27337

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-01 15:30:55 +00:00
Hynek Mlnarik
486c21cf77 Read Only Access of a realm clients' Authz is broken for Admin Console
Fixes #24586

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-01 14:03:08 +01:00
Hynek Mlnarik
49bbed13b9 Localize admin error messages
Fixes: #25977 (part of)

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-03-01 14:03:08 +01: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
dependabot[bot]
7d4f5e7a98
Bump @types/react from 18.2.60 to 18.2.61 in /js (#27404)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.60 to 18.2.61.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-01 10:13:48 +01:00
Aboullos
5719d71dd4
Modify no roles for dedicated client scope (#27395)
Signed-off-by: Alfredo Moises Boullosa <aboullos@redhat.com>
2024-02-29 17:16:09 +01:00
dependabot[bot]
ba0aa9f020
Bump react-router-dom from 6.22.1 to 6.22.2 in /js (#27377)
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.22.1 to 6.22.2.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.22.2/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 10:52:38 +01:00
Takashi Norimatsu
3db04d8d8d Replace Security Key with Passkey in WebAuthn UIs and their documents
closes #27147

Signed-off-by: Takashi Norimatsu <takashi.norimatsu.ws@hitachi.com>
2024-02-29 10:31:05 +01:00
Réda Housni Alaoui
a3b3ee4b87
Ability to declare a default "First broker login flow" per Realm
Closes #25823

Signed-off-by: Réda Housni Alaoui <reda-alaoui@hey.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2024-02-28 16:17:51 +01:00
Joshua Sorah
f1581adafe
Update message keys for dedicated client scope role mapping text. (#27102)
Closes keycloak/keycloak#27101

Signed-off-by: Joshua Sorah <jsorah@gmail.com>
2024-02-28 12:12:39 +01:00
graziang
16a854c91b Add option to clients to use lightweight access token
Add an "Always use lightweight access token" option on the client's Advanced tab in the "Advanced Settings" section that uses the already existing Constants.USE_LIGHTWEIGHT_ACCESS_TOKEN_ENABLED to store a boolean client attribute.
The attribute value is used to enable or disable the lightweight access token.
Closes #27238

Signed-off-by: graziang <g.graziano94@gmail.com>
2024-02-28 10:18:26 +01:00
dependabot[bot]
3aac7f96ff Bump @playwright/test from 1.41.2 to 1.42.0 in /js
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.41.2 to 1.42.0.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.41.2...v1.42.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-28 08:57:18 +01:00
dependabot[bot]
82618c65fc Bump @types/react from 18.2.59 to 18.2.60 in /js
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.59 to 18.2.60.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-28 08:43:15 +01:00
dependabot[bot]
fd546f2fbb
Bump @types/react from 18.2.58 to 18.2.59 in /js (#27302)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.58 to 18.2.59.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 14:17:32 +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
Erik Jan de Wit
de4edc5232
GitButler Integration Commit (#27088)
This is an integration commit for the virtual branches that GitButler is tracking.

Due to GitButler managing multiple virtual branches, you cannot switch back and
forth between git branches and virtual branches easily.

If you switch to another branch, GitButler will need to be reinitialized.
If you commit on this branch, GitButler will throw it away.

Here are the branches that are currently applied:
 - main (refs/gitbutler/main)
   branch head: 512fd32743de60486810c1fb94fa0c4264c2867e

Your previous branch was: HEAD

The sha for that commit was: c30b9545ef

For more information about what we're doing here, check out our docs:
https://docs.gitbutler.com/features/virtual-branches/integration-branch

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: GitButler <gitbutler@gitbutler.com>
2024-02-27 07:54:06 -05:00
Pedro Igor
0c91fceaad Allow setting if both 'client_id' and 'id_token_hint' params should be sent in logout requests
Closes #27281

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2024-02-27 20:37:27 +09:00
Erik Jan de Wit
dfd3fee95a
reset form when provider / mapperPype changes (#26971)
fixes: #26697

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2024-02-27 10:05:24 +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
Oliver
bf89d53134
Show display name in realm selector (#27259)
Solves #17735

Signed-off-by: Oliver Cremerius <antikalk@users.noreply.github.com>
2024-02-26 14:04:38 +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
kaustubh-rh
03f6cda85a
Prevent user from removing built-in client scopes (#27134)
Closes #26937

Signed-off-by: Kaustubh B <kbawanka@redhat.com>
2024-02-26 11:16:23 +01:00
Peter Keuter
fb262a05d9
Set the selected locale to default realm locale when creating a user (#27163)
* fix: set the selected locale to default realm locale when creating a user

Signed-off-by: Peter Keuter <github@peterkeuter.nl>

* Update js/apps/admin-ui/src/user/CreateUser.tsx

Co-authored-by: Erik Jan de Wit <edewit@redhat.com>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>

* fix: check if defaultLocale is set

Signed-off-by: Peter Keuter <github@peterkeuter.nl>

* chore: implement proposed change

Signed-off-by: Peter Keuter <github@peterkeuter.nl>

---------

Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Co-authored-by: Erik Jan de Wit <edewit@redhat.com>
2024-02-26 09:19:29 +01:00