Common:Utils:OAuth: fix scope list for openid
This commit is contained in:
parent
8b9c3af330
commit
20c3d69d42
@ -62,12 +62,15 @@ const ScopeList = ({ selectedScopes, scopes, t }: IScopeListProps) => {
|
|||||||
|
|
||||||
for (let key in filteredScopes) {
|
for (let key in filteredScopes) {
|
||||||
if (filteredScopes[key].isChecked) {
|
if (filteredScopes[key].isChecked) {
|
||||||
if (filteredScopes[key].checkedType === ScopeType.read) {
|
if (
|
||||||
|
filteredScopes[key].checkedType === ScopeType.read ||
|
||||||
|
filteredScopes[key].checkedType === ScopeType.openid
|
||||||
|
) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
result.push(filteredScopes[key].read.tKey || "");
|
result.push(filteredScopes[key].read?.tKey || "");
|
||||||
} else {
|
} else {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
result.push(filteredScopes[key].write.tKey || "");
|
result.push(filteredScopes[key].write?.tKey || "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
export const enum ScopeType {
|
export const enum ScopeType {
|
||||||
read = "read",
|
read = "read",
|
||||||
write = "write",
|
write = "write",
|
||||||
|
openid = "openid",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const enum ScopeGroup {
|
export const enum ScopeGroup {
|
||||||
|
Loading…
Reference in New Issue
Block a user