Commit Graph
1086 Commits
Author SHA1 Message Date
Martin Bartoš e41a961628 Manual execution of Jakarta validation (#42388)
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-09-15 10:20:50 +02:00
Martin Bartoš eca1333027 [admin-api-v2] Provide simple validation with Jakarta/Hibernate Validation (#41110)
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-09-05 10:51:30 +02:00
Steven Hawkins 1118c5bf1b shows what patching logic should look like (#40450)
* shows what patching logic should look like

also shows basic field validation

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* updates based upon review comments

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-09-05 10:49:43 +02:00
Steven Hawkins 210d3fa352 refinements related to service methods, serdes (#40110)
and adding a default to representation

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-09-05 10:49:43 +02:00
fff34d3bd5 [Admin API v2] Skeleton prototype (#39322)
* Add new ClientRepresentation

Co-authored-by: Peter Zaoral <pzaoral@redhat.com>
Co-authored-by: Václav Muzikář <vmuzikar@redhat.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Add APIs

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

* Add ApiModelMapper SPI

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

* Add MapStruct as default ApiModelMapper

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

* Add default APIs implementations

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

* Provide Service SPI and ClientService

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

* Add default Keycloak services and Client service

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

* Add ModelMapper to shared modules

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

* Implement Client service, add ServiceException class

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

* Use ClientService in Client REST API

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

* Update rest/admin-api/src/main/java/org/keycloak/admin/api/client/ClientsApi.java

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

* Fix ModelMapperSpi

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

* Use /admin/api/v2 as a root path

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

* Support latest API version by default

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

* Rename path param to comply with API spec

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

---------

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Peter Zaoral <pzaoral@redhat.com>
Co-authored-by: Václav Muzikář <vmuzikar@redhat.com>
Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
2025-09-05 10:49:41 +02:00
Awambeng f9cb8dfe3d [OID4VCI]: Add DPoP nonce header support to OID4VCI nonce endpoint (#41999)
Closes #41580

Signed-off-by: Awambeng Rodrick <awambengrodrick@gmail.com>
2025-09-04 14:52:10 +02:00
Stian Thorgersen 320ea5a9a7 Experimental SPIFFE identity provider (#42314)
Closes #42313

Signed-off-by: stianst <stianst@gmail.com>
2025-09-04 14:48:18 +02:00
Martin Kanis fc3914c439 [RLM] Provide a action to notify users by email based on a configurable time
Closes #41788

Signed-off-by: Martin Kanis <mkanis@redhat.com>
2025-09-03 16:38:41 -03:00
Pedro Igor 17a053b2af Add support for generic event-based policies and conditions
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-09-02 17:45:59 -03:00
mposolda 624d236ced DPoP verification support for admin/account REST API endpoints. Java admin-client DPoP support
closes #33942

Signed-off-by: mposolda <mposolda@gmail.com>
2025-09-02 14:29:30 +02:00
Pedro Igor a64c5c0d70 Adding RLM Admin API and basic endpoints
Closes #40346

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-08-28 14:49:21 -03:00
Marek PosoldaandJon Koops dd7ad5b866 Ability to display 'authenticator provider' of the WebAuthn credential (#41615)
closes #41613

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


Co-authored-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Marek Posolda <mposolda@gmail.com>
2025-08-20 11:42:24 +02:00
Peter Skopek 651d651c30 Add missing artifact descriptions to allow Maven Central Portal Publisher pass validation process. (#40822)
Signed-off-by: Peter Skopek <pskopek@redhat.com>
2025-08-12 16:50:17 +02:00
huyenvu2101 5436f9781c Allow setting default value for userprofile attribute
Closes #36160

Signed-off-by: huyenvu2101 <vhuyen2101@gmail.com>
2025-08-06 13:59:54 -03:00
Steven Hawkins 11924e6473 enhance: adding the ability to get the root config from a Scope
closes: #36268

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-08-05 18:51:33 +02:00
Steven Hawkins d3d217e074 fix: showing only the canonical oauth2 property name (#41652)
closes: #41624

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-08-05 11:03:27 -04:00
forkimenjeckayang 43610cfa67 [OID4VCI] Update SD-JWT VCs Format Identifier to dc+sd-jwt (#41233)
Closes #39293

Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>
2025-08-01 09:13:35 +02:00
Alexis RicoandAlexander Schwartz c834e7473c Fix typo in consent scope)
* Deprecate `displayTest`

Closes #40786

Signed-off-by: Alexis Rico <sferadev@gmail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-07-07 16:38:47 +00:00
Douglas Palmer a981f6b6d5 Access Token IDs have less than 128 bits of entropy
Closes #38663

Signed-off-by: Douglas Palmer <dpalmer@redhat.com>
2025-06-26 16:48:03 +02:00
Douglas Palmer 1183157d86 Key generation for client authentication is always RSA 2048 with a 10-year validity, regardless of the selected algorithm
Closes #38620

Signed-off-by: Douglas Palmer <dpalmer@redhat.com>
2025-06-25 08:15:43 +02:00
Pedro Igor 828f9f7916 Mark user as disabled if reaching max login failures and permanent lockout is enabled
Closes #40159

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-06-18 08:34:56 +02:00
Steven HawkinsandMartin Bartoš 76bc9fadcb fix: adding a -- separator for spi options (#40005)
* fix: adding a -- separator for spi options

closes: #39063

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* adding a warning for ambiguous spi options

also adding a note about the change

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
# Conflicts:
#	docs/documentation/upgrading/topics/changes/changes-26_3_0.adoc

* updating docs to the new format

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
# Conflicts:
#	docs/guides/high-availability/examples/generated/keycloak-ispn.yaml
#	docs/guides/high-availability/examples/generated/keycloak.yaml

* internally using the new spi options

also adding a deprecation notice

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Apply suggestions from code review

Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* correcting options output

adding + + inlining where needed

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* adding test showing the env mapping with __

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2025-06-13 16:13:53 +02:00
Ricardo Martin 41110823c7 Integrate current auth-username-password-form authenticator with passkeys isConditionalMediationAvailable (#38781)
Closes #29596

Signed-off-by: rmartinc <rmartinc@redhat.com>
2025-06-05 08:53:00 +02:00
Thomas Darimont 04191e0c7a Add cpu info to serverinfo
Fixes #40208

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
2025-06-05 00:07:17 +02:00
mposolda ab7edb0d01 Introduce ExternalToInternalTokenExchangeProvider. Make it working with Google IDP using token-info endpoint instead of user-info endpoint
closes #40146
closes #40133

Signed-off-by: mposolda <mposolda@gmail.com>
2025-06-04 10:03:52 +02:00
Erik Jan de WitandAlexander Schwartz cbd0d18f6a add description to groups
fixes #39172

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-05-14 06:41:01 -04:00
Tetsuhiro Hiruta 10c0c8fa52 Add OpenAPI annotation to JSON object of ClientPolicycy representations
Closes #32600

Signed-off-by: Tetsuhiro Hiruta <tetsuhiro.hiruta.sg@hitachi.com>
2025-04-29 09:41:16 +02:00
mposolda 4e95bde179 Avoid using password policy for configuration of recovery codes warning threshold
closes #39214

Signed-off-by: mposolda <mposolda@gmail.com>
2025-04-28 10:06:01 +02:00
Thomas Richner 80475e475b Fix JWK Subtypes failing when mapping JWK to PublicKey
Closes #38542

Signed-off-by: Thomas Richner <thomas.richner@oviva.com>
2025-04-28 09:36:54 +02:00
Pedro Igor dbb0179a93 Aligning partial evaluation with the outcome from regular evaluations
Closes #38626

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-04-03 12:07:30 -03:00
Pedro Igor 61cb0acbc4 Fixing inconsistencies when evaluating permission in the evaluation tab
Closes #38498

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-04-01 11:40:27 -03:00
Alexander Schwartz 85737f52b5 Make access Token in user info endpoint bound to the dpop proof
Closes #38333

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2025-03-31 09:41:57 +02:00
Steven Hawkins 06e0885f46 fix: adds back reporting of non-ip client addresses (#37797)
closes: #36843

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
# Conflicts:
#	services/src/main/java/org/keycloak/protocol/oidc/tokenexchange/AbstractTokenExchangeProvider.java
#	services/src/main/java/org/keycloak/protocol/oidc/tokenexchange/StandardTokenExchangeProvider.java
2025-03-27 19:33:20 +00:00
Tero Saarni c7f0fc7ac3 Support EC in PEM utils
This change adds

- Support for decoding EC private keys.
- Support for decoding certificate bundles.

Closes #38490

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
2025-03-27 15:44:05 +01:00
Ricardo Martin 19f9331e88 Re-add messages for recovery codes credential in the account console
Closes #38381

Signed-off-by: rmartinc <rmartinc@redhat.com>
2025-03-26 16:05:39 +01:00
Thomas Richner 9920aa248e fixes incorrect JWK thumprint computation
Closes #38394

Signed-off-by: Thomas Richner <thomas.richner@oviva.com>
2025-03-25 20:55:54 +01:00
Pedro Igor 77ef5ff795 Returning the denied scopes and the friendly name for resources
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-02-27 14:12:45 -03:00
mposolda f03f511844 Polishing support for id-token in standard token exchange
closes #37113

Signed-off-by: mposolda <mposolda@gmail.com>
2025-02-19 14:44:29 +01:00
Pedro Igor 602df06191 Allows querying credential from user storage providers
Closes #35020

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-02-05 07:56:05 -03:00
Arthenice c20f7e50c7 docs: update JavaDoc for ImportSynchronization
The JavaDoc for ImportSynchronization was wrongfully referencing the
UserStorageProvider instead of the UserStorageProviderFactory.

Closes #36834

Signed-off-by: arthenice <wistful.arthenice@gmail.com>
2025-01-28 12:13:19 +01:00
Stian Thorgersen fc2b9018f1 Extend REST API for login and admin events to support sync scenarios (#36601)
Closes #36600

Signed-off-by: stianst <stianst@gmail.com>
2025-01-20 14:32:55 +01:00
Stian ThorgersenandPedro Igor c1c147cb17 Restrict access to environment variables when at the server runtime (#36472)
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-01-15 09:36:19 +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
Ingrid Kamga 206436fde9 Offload format-specific credential building to dedicated credential builder providers (#32951) (#35046)
Closes #32951

Signed-off-by: Ingrid Kamga <Ingrid.Kamga@adorsys.com>
2024-12-19 12:42:41 +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
Thomas Darimont 3cdbbc5b15 Add support for Initiating User Registration via prompt=create (#10701) (#35903)
Fixes #10701

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
2024-12-16 19:54:52 +01:00
vramik 044807f162 [FGAP] Create new internal client which would hold the authorization objects for feature V2
Closes #34565

Signed-off-by: vramik <vramik@redhat.com>
2024-12-05 11:56:13 -03:00
Thomas DarimontandAlexander Schwartz f61937f3d9 Prefer usage of StandardCharsets.UTF_8 over "UTF-8" charset reference
Fixes #35080

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2024-11-25 10:45:37 +00:00
vramik 440e81c8b9 Add a realm-level setting to enable FGAP to a realm
Closes #34920

Signed-off-by: vramik <vramik@redhat.com>
2024-11-19 09:59:34 -03:00
Awambeng cfd187b0ff Introduce SdJwtFacade layer for simplified SD-JWT handling and enhance test coverage (#34915)
Closes #32955

Signed-off-by: Awambeng Rodrick <awambengrodrick@gmail.com>
2024-11-15 15:20:10 +01:00