Skip to content

Commit

Permalink
Merge pull request #5827 from ZiyamSanthosh/master-fix-spid-issue-2
Browse files Browse the repository at this point in the history
Exclude logic related to spId when sp is present in request params
  • Loading branch information
ZiyamSanthosh committed Mar 23, 2024
2 parents 5c98009 + 3317f1e commit c118175
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-ties-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Improve logic to fix conflict on sp and spId params
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@
if (StringUtils.isNotBlank(spId)) {
try {
ApplicationDataRetrievalClient applicationDataRetrieval = new ApplicationDataRetrievalClient();
if (spId.equals("My_Account")) {
sp = "My Account";
} else {
if (!sp.equals("My Account")) {
sp = applicationDataRetrieval.getApplicationName(tenantDomain,spId);
}
} catch (Exception e) {
Expand Down

0 comments on commit c118175

Please sign in to comment.