Skip to content

Commit

Permalink
Merge pull request #6947 from pavinduLakshan/fix_scope_rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Oct 2, 2024
2 parents 0201b46 + b779f87 commit 4b43b93
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/brown-trains-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/admin.identity-providers.v1": patch
"@wso2is/admin.connections.v1": patch
---

Fix scopes being rendered incorrectly in connection settings tab
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export const GoogleAuthenticatorForm: FunctionComponent<GoogleAuthenticatorFormP
let scopes: string[] = [];

try {
scopes = rawScopes.trim().split("scope=")[1].split(" ");
scopes = new URLSearchParams(rawScopes).get("scope").split(" ");
} catch(e) {
// Silent any issues occurred when trying to scroll.
// Add debug logs here one a logger is added.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export const MicrosoftAuthenticatorForm: FunctionComponent<MicrosoftAuthenticato
let scopes: string[] = [];

try {
scopes = rawScopes.trim().split(" ");
scopes = new URLSearchParams(rawScopes).get("scope").split(" ");
} catch(e) {
// Silent any issues occurred when trying to scroll.
// Add debug logs here one a logger is added.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export const GoogleAuthenticatorForm: FunctionComponent<GoogleAuthenticatorFormP
let scopes: string[] = [];

try {
scopes = rawScopes.trim().split("scope=")[1].split(" ");
scopes = new URLSearchParams(rawScopes).get("scope").split(" ");
} catch(e) {
// Silent any issues occurred when trying to scroll.
// Add debug logs here one a logger is added.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const MicrosoftAuthenticatorForm: FunctionComponent<MicrosoftAuthenticato
let scopes: string[] = [];

try {
scopes = rawScopes.trim().split(" ");
scopes = new URLSearchParams(rawScopes).get("scope").split(" ");
} catch(e) {
// Silent any issues occurred when trying to scroll.
// Add debug logs here one a logger is added.
Expand Down

0 comments on commit 4b43b93

Please sign in to comment.