Skip to content

Remove deprecated representations and representation fields #51613

Open
0 of 5 issues completed
Open

Description

@stianst

Description

A number of representations and fields within these have been deprecated and should be removed. However, this affects API contracts as previously valid representations will no longer be permitted. Additionally, it affects exporting from older versions of Keycloak.

Deprecated Members in Representation Classes

Report of all *Representation.java classes containing @Deprecated annotations. Updated on 11th August, and will not include any newer deprecations after this point.


AbstractAuthenticationExecutionRepresentation

Member Type
autheticatorFlow Field
isAutheticatorFlow() Method
setAutheticatorFlow(boolean) Method

ApplicationRepresentation

The entire class is deprecated.

Member Type
claims Field

AuthorizationDetailsJSONRepresentation

Member Type
DYNAMIC_SCOPE_RAR_TYPE Field

ClientRepresentation

Member Type
defaultRoles Field
directGrantsOnly Field
clientTemplate Field
useTemplateConfig Field
useTemplateScope Field
useTemplateMappers Field
getDefaultRoles() Method
setDefaultRoles(String[]) Method
isDirectGrantsOnly() Method
getClientTemplate() Method
isUseTemplateConfig() Method
isUseTemplateScope() Method
isUseTemplateMappers() Method

ClientTemplateRepresentation

The entire class is deprecated. Use ClientScopeRepresentation instead.

ConsentScopeRepresentation

Member Type
getDisplayTest() Method
setDisplayTest(String) Method

CredentialRepresentation

Member Type
device Field
hashedSaltedValue Field
salt Field
hashIterations Field
counter Field
algorithm Field
digits Field
period Field
config Field
getDevice() Method
getHashedSaltedValue() Method
getSalt() Method
getHashIterations() Method
getCounter() Method
getAlgorithm() Method
getDigits() Method
getPeriod() Method
getConfig() Method

IdentityProviderRepresentation

Member Type
updateProfileFirstLoginMode Field
setUpdateProfileFirstLogin(Boolean) Method
getUpdateProfileFirstLoginMode() Method
setUpdateProfileFirstLoginMode(String) Method
isAuthenticateByDefault() Method
setAuthenticateByDefault(Boolean) Method

OAuthClientRepresentation

The entire class is deprecated.

OrganizationInvitationRepresentation

Member Type
inviteLink Field
getInviteLink() Method
setInviteLink(String) Method

ProtocolMapperRepresentation

Member Type
consentRequired Field
consentText Field
isConsentRequired() Method
getConsentText() Method

RealmRepresentation

Member Type
passwordCredentialGrantAllowed Field
userCacheEnabled Field
realmCacheEnabled Field
privateKey Field
publicKey Field
certificate Field
codeSecret Field
defaultRoles Field
requiredCredentials Field
social Field
updateProfileOnInitialSocialLogin Field
socialProviders Field
applicationScopeMappings Field
applications Field
oauthClients Field
clientTemplates Field
getRequiredCredentials() Method
setRequiredCredentials(Set) Method
getDefaultRoles() Method
setDefaultRoles(List) Method
isSocial() Method
isUpdateProfileOnInitialSocialLogin() Method
getSocialProviders() Method
getOauthClients() Method
getApplicationScopeMappings() Method
getWebAuthnPolicyRequireResidentKey() Method
setWebAuthnPolicyRequireResidentKey(String) Method
getWebAuthnPolicyPasswordlessRequireResidentKey() Method
setWebAuthnPolicyPasswordlessRequireResidentKey(String) Method
getClientTemplates() Method

ResourceRepresentation

Member Type
getUri() Method
setUri(String) Method

RoleRepresentation

Member Type
scopeParamRequired Field
isScopeParamRequired() Method
Composites.application Field
Composites.getApplication() Method

RolesRepresentation

Member Type
application Field
getApplication() Method

ScopeMappingRepresentation

Member Type
clientTemplate Field
getClientTemplate() Method

UserConsentRepresentation

Member Type
grantedRealmRoles Field
getGrantedRealmRoles() Method

UserRepresentation

Member Type
applicationRoles Field
socialLinks Field
isTotp() Method
setTotp(Boolean) Method
getApplicationRoles() Method
getOrigin() Method
setOrigin(String) Method

Summary: 18 Representation classes contain deprecations (3 of which are deprecated at the class level). Across all classes there are 52 deprecated fields and 55 deprecated methods.

Sub-issues

Sub-issues

0 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. transferred this issue fromkeycloak/dashboardon Aug 11, 2026
  2. added theissue type on Aug 11, 2026
  3. added this to the 27.0.0 milestone on Aug 11, 2026
  4. stianst commented on Aug 11, 2026

    @stianst
    ContributorAuthor

    Breaking changes around the Admin REST API would need to be clearly documented; we also need to figure out how the Admin Client libraries will handle these breaking changes. Options here could be:

    • Introduce a new major version of Admin clients, which removes the deprecated representations
    • Keep the Admin Clients as is until it does not support any Keycloak server versions that supports the deprecated representations

    For importing from older versions of Keycloak, or manually created realm representations, we could:

    • Not permit the deprecated representations and require manual rewrite
    • Provide some sort of migration tool, either as a separate thing or as part of the import itself. One problem here is that we don't have versioned representations, which makes things harder from this perspective as we have to "guess" if it's compatible or not
  5. changed the title [-]Remove deprecated representations and attributes[/-] [+]Remove deprecated representations and representation fields[/+] on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for eol.

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions