Fixed auto-unmapping of e.g. names and authentication during action change. Re-mapped with pointers rather than JSON parsing

This commit is contained in:
frikky
2022-02-15 22:37:09 +01:00
parent 9929ae816f
commit 92fa70a373
5 changed files with 68 additions and 4 deletions
+4 -1
View File
@@ -121,7 +121,10 @@ const AuthenticationOauth2 = (props) => {
var resources = "";
if (scopes !== undefined && (scopes !== null) & (scopes.length > 0)) {
if (offlineAccess === true && !scopes.includes("offline_access")) {
scopes.push("offline_access")
if (authenticationType.redirect_uri.includes("microsoft")) {
console.log("Appending offline access")
scopes.push("offline_access")
}
}
resources = scopes.join(" ");