Commit Graph

68 Commits

Author SHA1 Message Date
Simon Vacek 546724ddf8 Move AdminEventTest.java, LoginEventsTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

# Conflicts:
#	test-framework/core/src/main/java/org/keycloak/testframework/realm/RealmConfigBuilder.java
2025-03-17 12:38:57 +01:00
Simon Vacek d6561cff1b Moving files to the new test suite
Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-17 12:38:57 +01:00
Simon Vacek 723f191a86 Move InitialAccessTokenResourceTest.java, RoleByIdResourceTest.java, TimeOffsetTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:26:58 +01:00
Simon Vacek 578a63ca03 Moving files to the new test suite
Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:26:58 +01:00
Simon Vacek 62cff80c5e Move CrossRealmPermissionsTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:25:26 +01:00
Simon Vacek 6efccbffdc Moving files to the new test suite
Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:25:26 +01:00
Simon Vacek e1fdd1dab6 Move ServiceAccountClientTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:21:02 +01:00
Simon Vacek e8d3d142df Moving files to the new test suite
Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:21:02 +01:00
Pedro Igor 70114e249a Fix showing resource display name when listing permissions
Closes #38027

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-03-13 13:05:15 -03:00
Lukas Hanusovsky 8f0bc985f6 [Test framework] AttackDetectionResourceTest migration (#38010)
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-03-13 13:50:24 +01:00
vramik 872a691757 Remove permissions and resources when their corresponding objects are deleted
Closes #37242

Signed-off-by: vramik <vramik@redhat.com>
2025-03-11 14:58:03 -03:00
Lukas Hanusovsky 89980e0971 [Test framework] AdminEventAuthDetailsTest migration (#37910)
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-03-11 08:22:07 +01:00
Miquel Simon 7c0187cbc5 Migrate UserTests to the new framework (#37654)
* Move UsersTest to the new testsuite

Part of #34494

Signed-off-by: Miquel Simon <msimonma@redhat.com>

* Move UsersTest to the new testsuite

Part of #34494

Signed-off-by: Miquel Simon <msimonma@redhat.com>

---------

Signed-off-by: Miquel Simon <msimonma@redhat.com>
2025-03-10 09:25:21 +01:00
Martin Kanis f41ee2fdc6 Add Role resource type and its scopes to authorization schema
Closes #35565

Signed-off-by: Martin Kanis <mkanis@redhat.com>
2025-03-06 09:09:35 -03:00
Šimon Vacek 497a1141a7 Move GroupSearchTest.java to the new testsuite (#37836)
* Move GroupSearchTest.java to the new testsuite

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Move GroupSearchTest to the new testsuite

Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-06 06:49:04 +01:00
Šimon Vacek ff2ce16d5f Move DeclarativeUserTest.java to the new testsuite (#37724)
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-03 09:42:24 +01:00
Lukas Hanusovsky f6fc5b6258 [Test framework MVP] SMTPConnectionTest + SMTPConnectionVaultTest (#35230)
* [Test framework MVP] SMTPConnectionTest - mv

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

* [Test framework MVP] SMTPConnectionTest + SMTPConnectionVaultTest

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

---------

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-03-03 09:31:47 +01:00
Šimon Vacek 75b23a3450 Migrate ClientScopeTest (#37603)
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-03 08:59:11 +01:00
Lukas Hanusovsky ac175f585b [Test framework] AuthzCleanupTest (#37632)
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-03-03 08:52:46 +01:00
Stian Thorgersen c22f76867f Move doLogin to AbstractOAuthClient (#37638)
Closes #37637

Signed-off-by: stianst <stianst@gmail.com>
2025-02-26 12:34:03 +01:00
Agnieszka Gancarczyk 6587f5f76e Added UI support for Clients and Groups resource types (#37379)
* removed policyId from permission search form

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Adding support for Clients and Groups resource types

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Adding support for Clients and Groups resource types

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Added support for clients resourceType

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Added support for creating permission based on Clients and Groups resource types

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* updated messages

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* updated messages

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Fixing the search by resource type and resource

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

* Fixing changing permissions from specific to all resources

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

* made groups policy default instead of aggregate and fixed ClientSelect

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Added error handling for authorization scope field

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Added error handling for authorization scope field

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* improved policy creation from create permission

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* improved policy creation from create permission

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* improved policy creation from create permission

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* Improved ClientScope

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

* updated GroupSelect

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>

---------

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-02-24 08:12:09 -03:00
Šimon Vacek d31f1ad3f4 Migrate ClientProtocolMapperTest, ClientScopeProtocolMapperTest (#37534)
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-02-24 09:00:39 +01:00
Lukas Hanusovsky 4c172d99d2 [Test framework] Moving provider classes to specific package (#37484)
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-02-19 11:00:36 +00:00
Akbar Husain 9d3cfe0672 Remove X-XSS-Protection header (#36881)
Closes #21728

Signed-off-by: akbarhusainpatel <apatel@intermiles.com>
2025-02-19 08:42:26 +01:00
Šimon Vacek 40e8c0eba3 Migrate InstallationTest to the new testsuite (#37394)
* Migrate InstallationTest to the new testsuite

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Migrate InstallationTest to the new testsuite

Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Added Client cleanup to the test framework

Signed-off-by: Simon Vacek <simonvacky@email.cz>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-02-19 08:30:22 +01:00
Pedro Igor f3c8e8f348 Make sure resources are properly managed when updating permissions
Closes #37337

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-02-17 15:11:34 -03:00
Šimon Vacek 2b74e6148e Migrate ClientSearchTest to the new testsuite (#37171)
* Move ClientSearchTest.java to the new testsuite

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Move ClientSearchTest.java to the new testsuite

Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-02-17 13:17:35 +01:00
Stian Thorgersen 60b75d4b38 Migrate AuthenticatorConfigTest (#37274)
Part of #34494

Signed-off-by: stianst <stianst@gmail.com>
2025-02-14 06:33:39 +01:00
vramik 679f44692d Add Groups resource type and scopes to authorization schema and evaluation implementation
Closes #35562

Signed-off-by: vramik <vramik@redhat.com>
2025-02-12 10:07:09 -03:00
Šimon Vacek f5470716fe Migrate EventConfigTest to the new testsuite (#37092)
* Move EventConfigTest.java to the new testsuite

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Move EventConfigTest.java to the new testsuite

Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-02-12 07:20:53 +01:00
Martin Kanis 7e5540896b Add Client resource type and its scopes to authorization schema and evaluation implementation for ClientsPermissionsV2
Closes #35564

Signed-off-by: Martin Kanis <mkanis@redhat.com>
2025-02-11 14:36:57 -03:00
Pedro Igor bf355f83d3 Review how all resource type permissions are evaluated
Closes #37081

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-02-06 08:43:29 -03:00
Stian Thorgersen 19cabe8238 Migrate tests from org/keycloak/tests/admin/authentication to new framework (#37003)
* Migrate tests from org/keycloak/tests/admin/authentication to new framework

Part of #34494

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

* Update tests/MIGRATING_TESTS.md

Signed-off-by: Stian Thorgersen <stian@redhat.com>

---------

Signed-off-by: stianst <stianst@gmail.com>
Signed-off-by: Stian Thorgersen <stian@redhat.com>
2025-02-06 10:24:50 +01:00
vramik c2acddc7ca Update FGAP v2 to not grant permissions of all users when permission is granted only for a single user
Closes #36838

Signed-off-by: vramik <vramik@redhat.com>
2025-02-04 11:54:04 -03:00
Pedro Ruivo beb20dc425 Add default configuration for cache 'crl'
Fixes #36752

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
Signed-off-by: Michal Hajas <mhajas@redhat.com>
Signed-off-by: Pedro Ruivo <pruivo@users.noreply.github.com>
Co-authored-by: Michal Hajas <mhajas@redhat.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
2025-02-03 09:53:31 +01:00
vramik b82aecd89f Remove resources from permissions when updating the associated resources
Closes #36837

Signed-off-by: vramik <vramik@redhat.com>
2025-01-29 07:10:36 -03:00
vramik b97c8f1df6 Add scopes for Users resource type to authorization schema and evaluation implementation for UsersPermissionsV2
Closes #35568

Signed-off-by: vramik <vramik@redhat.com>
2025-01-27 11:35:49 -03:00
Miquel Simon 2dbf58dc46 Add JDK suite to the new testing framework and run it as part of the Java Distribution IT (#36638)
Closes #35388

Signed-off-by: Miquel Simon <msimonma@redhat.com>
2025-01-24 10:08:11 +01:00
Stian Thorgersen 99e2f1df94 Replace createRealm/createClient and invalid use of ref with attachTo (#36640)
Closes #35995

Signed-off-by: stianst <stianst@gmail.com>
2025-01-21 14:05:14 +01:00
vramik 8b5ebe98d8 [FGAP] Design AdminPermissionEvaluator implementation for FGAP v2
Closes #34921

Signed-off-by: vramik <vramik@redhat.com>
Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-01-15 16:05:14 -03:00
Stian Thorgersen 388fa5a3eb Rename org.keycloak.test groupId to org.keycloak.testframework for new test framework artifacts (#36443)
Closes #36431

Signed-off-by: stianst <stianst@gmail.com>
2025-01-14 14:32:03 +01:00
Stian Thorgersen 01f5a8c1c3 Rename org.keycloak.test to org.keycloak.tests (#36429)
Closes #36389

Signed-off-by: stianst <stianst@gmail.com>
2025-01-14 13:20:01 +01:00
Stian Thorgersen 2d913e5186 Rename org.keycloak.test.framework package to org.keycloak.testframework (#36390)
Closes #36388

Signed-off-by: stianst <stianst@gmail.com>
2025-01-14 10:04:41 +01:00
vramik 0a632fdefa [FGAP] Add adminPermissionClientCheck to authorization services REST endpoints
Closes #35945

Signed-off-by: vramik <vramik@redhat.com>
2025-01-10 08:56:48 -03:00
Martin Bartoš 0cfeabe6cf Upgrade to Quarkus 3.15.2 (#35078)
* Upgrade to Quarkus 3.15.2

Closes #35077

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Remove workaround for overridden micrometer dependencies

Closes #33469

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Unable to use custom handlers for HTTP OPTIONS method in subresources

Fixes #36009

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

---------

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-01-07 11:37:39 +01:00
Michal Hajas 3839f8e3b5 Add metric for password validations (#36049)
Closes #36048
Signed-off-by: Michal Hajas <mhajas@redhat.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-01-07 10:05:47 +01:00
Pedro Igor 93c1740538 Support for initial CRUD operations when managing admin permissions
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>

Closes #35987
2024-12-18 07:43:13 -03:00
Stian Thorgersen c0209ccd03 Migrate EmailEventListenerTest (#35202)
* Move EmailEventListenerTest

Part of #34494

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

* Update EmailEventListenerTest for migration

Part of #34494

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

---------

Signed-off-by: stianst <stianst@gmail.com>
2024-11-28 10:19:45 +01:00
Miquel Simon 5e6faae517 Migrate ClientDescriptionConverterTest to the new framework (#35309)
* Migrate ClientDescriptionConverterTest to the new framework

Part of #34494

Signed-off-by: Miquel Simon <msimonma@redhat.com>

* Migrate ClientDescriptionConverterTest to the new framework

Part of #34494

Signed-off-by: Miquel Simon <msimonma@redhat.com>

---------

Signed-off-by: Miquel Simon <msimonma@redhat.com>
2024-11-26 11:37:32 +01:00
Miquel Simon 8e56e640e5 Migrate AdminConsoleLandingPageTest to the new framework (#35260)
* Migrate AdminConsoleLandingPageTest to the new framework

Part of #34494

Signed-off-by: Miquel Simon <msimonma@redhat.com>

* Migrate AdminConsoleLandingPageTest to the new framework

Part of #34494

Signed-off-by: Miquel Simon <msimonma@redhat.com>

---------

Signed-off-by: Miquel Simon <msimonma@redhat.com>
2024-11-26 11:26:11 +01:00