-
Notifications
You must be signed in to change notification settings - Fork 43
Enable Unavailable Accounts Display in Authorization Screen to Support CDS Toolkit #900
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
Open
duleepa-a
wants to merge
14
commits into
wso2:main
Choose a base branch
from
duleepa-a:Changes-for-CDS-DOMS-Feature
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
95157e2
adding display data property for populate consent auth response
duleepa-a ae8e122
fix checkstyle issues
duleepa-a 933c6c2
added the displaydata DTO to populateConsentAuthorizeScreenDTO as a l…
duleepa-a 92d1910
checkstyle fixes
duleepa-a f8bb953
fixes in the code
duleepa-a c2692d7
fix in consent auth screen tooltip.
duleepa-a 1fb0bc2
add license header
duleepa-a 7d90402
configuration name using for stopping resigning in DOMS policy is cha…
duleepa-a c3feb24
Changed the name of the display data property to additionalDisplayData
duleepa-a 78a334c
fix PR comments
duleepa-a 928c2db
PR comment fix
duleepa-a 26a9221
removed the extra line
duleepa-a dacfbd7
add per-account tooltip title and description in authorization screen
duleepa-a e47d000
rename tooltip CSS classes to generic names
duleepa-a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...financial/services/accelerator/consent/mgt/extensions/authorize/model/DisplayDataDTO.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| /** | ||
| * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). | ||
| * <p> | ||
| * WSO2 LLC. licenses this file to you under the Apache License, | ||
| * Version 2.0 (the "License"); you may not use this file except | ||
| * in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * <p> | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * <p> | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| package org.wso2.financial.services.accelerator.consent.mgt.extensions.authorize.model; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
| import java.util.Objects; | ||
|
|
||
| import javax.validation.Valid; | ||
|
|
||
| /** | ||
| * Display data object for authorization UI consent retrieval. | ||
| * Contains a list of display data sections. | ||
| */ | ||
| public class DisplayDataDTO { | ||
|
|
||
| @Valid | ||
| private List<DisplayDataInnerItemDTO> items = new ArrayList<>(); | ||
|
|
||
| public DisplayDataDTO() { | ||
| } | ||
|
|
||
| public List<DisplayDataInnerItemDTO> getItems() { | ||
| return items; | ||
| } | ||
|
|
||
| public void setItems(List<DisplayDataInnerItemDTO> items) { | ||
| this.items = items; | ||
| } | ||
|
|
||
| public DisplayDataDTO addItem(DisplayDataInnerItemDTO item) { | ||
| this.items.add(item); | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| if (!(o instanceof DisplayDataDTO)) { | ||
| return false; | ||
| } | ||
| DisplayDataDTO that = (DisplayDataDTO) o; | ||
| return Objects.equals(items, that.items); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(items); | ||
| } | ||
| } |
121 changes: 121 additions & 0 deletions
121
.../services/accelerator/consent/mgt/extensions/authorize/model/DisplayDataInnerItemDTO.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| /** | ||
| * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). | ||
| * <p> | ||
| * WSO2 LLC. licenses this file to you under the Apache License, | ||
| * Version 2.0 (the "License"); you may not use this file except | ||
| * in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * <p> | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * <p> | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| package org.wso2.financial.services.accelerator.consent.mgt.extensions.authorize.model; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import java.util.Objects; | ||
|
|
||
| import javax.validation.Valid; | ||
|
|
||
| /** | ||
| * Display data object for authorization UI consent retrieval. | ||
| * Stores UI metadata and dynamic display items such as unavailable accounts. | ||
| */ | ||
| public class DisplayDataInnerItemDTO { | ||
duleepa-a marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * UI Heading. | ||
| */ | ||
| private String heading; | ||
|
|
||
| /** | ||
| * UI Sub heading. | ||
| */ | ||
| private String subHeading; | ||
|
|
||
| /** | ||
| * Tooltip/help description. | ||
| */ | ||
| private String description; | ||
|
|
||
| /** | ||
| * Dynamic display items. | ||
| */ | ||
| @Valid | ||
| private List<Map<String, Object>> displayList = new ArrayList<>(); | ||
|
|
||
| public DisplayDataInnerItemDTO() { | ||
| } | ||
|
|
||
| // Heading | ||
| public String getHeading() { | ||
| return heading; | ||
| } | ||
|
|
||
| public void setHeading(String heading) { | ||
| this.heading = heading; | ||
| } | ||
|
|
||
| // SubHeading | ||
| public String getSubHeading() { | ||
| return subHeading; | ||
| } | ||
|
|
||
| public void setSubHeading(String subHeading) { | ||
| this.subHeading = subHeading; | ||
| } | ||
|
|
||
| // Tooltip Description | ||
| public String getDescription() { | ||
| return description; | ||
| } | ||
|
|
||
| public void setDescription(String description) { | ||
| this.description = description; | ||
| } | ||
|
|
||
| // Display Data | ||
| public List<Map<String, Object>> getDisplayList() { | ||
| return displayList; | ||
| } | ||
|
|
||
| public void setDisplayList(List<Map<String, Object>> displayList) { | ||
| this.displayList = displayList; | ||
| } | ||
|
|
||
| /** | ||
| * Convenience method to add a display item. | ||
| */ | ||
| public DisplayDataInnerItemDTO addItem(Map<String, Object> item) { | ||
| this.displayList.add(item); | ||
| return this; | ||
| } | ||
duleepa-a marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| if (!(o instanceof DisplayDataInnerItemDTO)) { | ||
| return false; | ||
| } | ||
| DisplayDataInnerItemDTO that = (DisplayDataInnerItemDTO) o; | ||
| return Objects.equals(heading, that.heading) && | ||
| Objects.equals(subHeading, that.subHeading) && | ||
| Objects.equals(description, that.description) && | ||
| Objects.equals(displayList, that.displayList); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(heading, subHeading, description, displayList); | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.