diff --git a/packages/bbui/src/Tags/Tag.svelte b/packages/bbui/src/Tags/Tag.svelte
index f7089decdb..9c4cb6e583 100644
--- a/packages/bbui/src/Tags/Tag.svelte
+++ b/packages/bbui/src/Tags/Tag.svelte
@@ -8,6 +8,7 @@
export let invalid = false
export let disabled = false
export let closable = false
+ export let onClick
{#if closable}
-
+
{/if}
diff --git a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte
index bc77329a32..ffc5bed7ce 100644
--- a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte
+++ b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte
@@ -18,6 +18,8 @@
Body,
Select,
Toggle,
+ Tag,
+ Tags,
} from "@budibase/bbui"
import { onMount } from "svelte"
import { API } from "api"
@@ -208,6 +210,7 @@
providers[res.type]._id = res._id
})
notifications.success(`Settings saved`)
+ scopesFields[0].editing = false
})
.catch(() => {
notifications.error("Failed to update auth settings")
@@ -215,6 +218,21 @@
}
}
+ let defaultScopes = ["profile", "email", "offline_access"]
+
+ const refreshScopes = idx => {
+ providers.oidc.config.configs[idx]["scopes"] =
+ providers.oidc.config.configs[idx]["scopes"]
+ }
+
+ let scopesFields = [
+ {
+ editing: false,
+ inputText: null,
+ error: null,
+ },
+ ]
+
onMount(async () => {
try {
await organisation.init()
@@ -276,7 +294,7 @@
if (!oidcDoc?._id) {
providers.oidc = {
type: ConfigTypes.OIDC,
- config: { configs: [{ activated: true }] },
+ config: { configs: [{ activated: true, scopes: defaultScopes }] },
}
} else {
originalOidcDoc = cloneDeep(oidcDoc)
@@ -397,10 +415,193 @@
/>
+
+
+
+ Advanced
+
+
+ Changes to your authentication scopes will only take effect when you
+ next log in. Please refer to your vendor documentation before
+ modification.
+
+
+
+
+
{/if}