mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-16 08:44:42 +01:00
added conditional default openid scope and helper text to remind users for the required permissions
This commit is contained in:
1 parent
7327f0cf33
commit
1cfc503bcd
8 files changed
+41
-8
No files matched your search
@@ -147,6 +147,20 @@ window.app.oauth2.microsoft = function(providerInfo, namePrefix, data) {
|
||||
},
|
||||
}),
|
||||
),
|
||||
t.div(
|
||||
{ className: "field-help" },
|
||||
t.p(null, "The default minimal required scopes are: ", t.code(null, "User.Read"), () => {
|
||||
if (data.config.extra?.idTokenEmailClaim) {
|
||||
return [" and ", t.code(null, "openid"), " (for the id_token)"];
|
||||
}
|
||||
}, "."),
|
||||
t.p(
|
||||
null,
|
||||
"Any optional claim such as ",
|
||||
t.code(null, "email"),
|
||||
" may need to be explicitly allowed depending on your tenant setup.",
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user