+
Skip to content

Fix typo in consent scope #40787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -50,11 +50,27 @@ public void setName(String name) {
this.name = name;
}

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 displayTest;
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion js/apps/account-ui/src/api/representations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface ConsentRepresentation {
export interface ConsentScopeRepresentation {
id: string;
name: string;
displayTest: string;
displayText: string;
}

export interface CredentialMetadataRepresentationMessage {
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载