mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-29 19:09:56 -06:00
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>
This commit is contained in:
@@ -23,15 +23,15 @@ public class ConsentScopeRepresentation {
|
||||
|
||||
private String name;
|
||||
|
||||
private String displayTest;
|
||||
private String displayText;
|
||||
|
||||
public ConsentScopeRepresentation() {
|
||||
}
|
||||
|
||||
public ConsentScopeRepresentation(String id, String name, String displayTest) {
|
||||
public ConsentScopeRepresentation(String id, String name, String displayText) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.displayTest = displayTest;
|
||||
this.displayText = displayText;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
@@ -50,11 +50,27 @@ public class ConsentScopeRepresentation {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDisplayTest() {
|
||||
return displayTest;
|
||||
public String getDisplayText() {
|
||||
return displayText;
|
||||
}
|
||||
|
||||
public void setDisplayText(String displayText) {
|
||||
this.displayText = displayText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getDisplayText()} instead. This method will be removed in KC 27.0.
|
||||
*/
|
||||
@Deprecated
|
||||
public String getDisplayTest() {
|
||||
return displayText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setDisplayText(String)} instead. This method will be removed in KC 27.0.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setDisplayTest(String displayTest) {
|
||||
this.displayTest = displayTest;
|
||||
this.displayText = displayTest;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,14 +14,15 @@ Notable changes where an internal behavior changed to prevent common misconfigur
|
||||
=== Usage of the `exact` request parameter when searching users by attributes
|
||||
|
||||
If you are querying users by attributes through the User API where you want to fetch users that match a specific attribute key (regardless the value),
|
||||
you should consider setting the `exact` request parameter to `false` when invoking the `/admin/realms/{realm}/users` using
|
||||
you should consider setting the `exact` request parameter to `false` when invoking the `+/admin/realms/{realm}/users+` using
|
||||
the `GET` method.
|
||||
|
||||
For instance, searching for all users with the attribute `myattribute` set should be done as follows:
|
||||
|
||||
```
|
||||
[source]
|
||||
----
|
||||
GET /admin/realms/{realm}/users?exact=false&q=myattribute:
|
||||
```
|
||||
----
|
||||
|
||||
The {project_name} Admin Client is also updated with a new method to search users by attribute using the `exact` request parameter.
|
||||
|
||||
@@ -46,7 +47,11 @@ properties will still function as before, but we recommend to change to the CLI
|
||||
|
||||
The following sections provide details on deprecated features.
|
||||
|
||||
=== <TODO>
|
||||
=== Deprecated `displayTest` field in `ConsentScopeRepresentation`
|
||||
|
||||
The `displayTest` field in the `ConsentScopeRepresentation` class returned by the Account REST service has been deprecated due to a typo in its name.
|
||||
A new field `displayText` with the correct spelling has been added to replace it. The old field will be removed in {project_name} 27.0.
|
||||
The Typescript code `ConsentScopeRepresentation` for the Account Console already contains only the new field.
|
||||
|
||||
// ------------------------ Removed features ------------------------ //
|
||||
== Removed features
|
||||
|
||||
@@ -31,7 +31,7 @@ export interface ConsentRepresentation {
|
||||
export interface ConsentScopeRepresentation {
|
||||
id: string;
|
||||
name: string;
|
||||
displayTest: string;
|
||||
displayText: string;
|
||||
}
|
||||
|
||||
export interface CredentialMetadataRepresentationMessage {
|
||||
|
||||
Reference in New Issue
Block a user