mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 11:39:40 +00:00
fallback to openid scope
This commit is contained in:
@@ -43,12 +43,17 @@ export function ConsentScreen({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const scopes = scope?.filter((s) => !!s);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pt-4 w-full flex flex-col items-center space-y-4">
|
<div className="pt-4 w-full flex flex-col items-center space-y-4">
|
||||||
<ul className="list-disc space-y-2 w-full">
|
<ul className="list-disc space-y-2 w-full">
|
||||||
{scope
|
{scopes?.length === 0 && (
|
||||||
?.filter((s) => !!s)
|
<span className="w-full text-sm flex flex-row items-center bg-background-light-400 dark:bg-background-dark-400 border border-divider-light py-2 px-4 rounded-md transition-all">
|
||||||
.map((s) => {
|
{t("device.scope.openid")}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
{scopes?.map((s) => {
|
||||||
const translationKey = `device.scope.${s}`;
|
const translationKey = `device.scope.${s}`;
|
||||||
const description = t(translationKey, null);
|
const description = t(translationKey, null);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user