fix: tenant id to never be undefined on teams (#5572)

* fix: tenant id to never be undefined

* simplify azure oauth

* simplify azure oauth

* update ee ref

* sqlx prepare

* sqlx prepare
This commit is contained in:
Alexander Petric
2025-04-05 12:17:26 +00:00
committed by GitHub
parent fb8d9ec942
commit c1b14cb5eb
6 changed files with 35 additions and 31 deletions
@@ -10,7 +10,7 @@
extra_params: { tenant_id: string }
extra_params_callback: Record<string, any>
} = {
scopes: [],
scopes: ['offline_access'],
auth_url: '',
token_url: '',
req_body_auth: true,
@@ -71,7 +71,11 @@
disabled={eeOnly && !$enterpriseLicense}
on:change={(e) => {
if (e.detail) {
value = { id: '', secret: '' }
if (name === 'teams' || name === 'microsoft') {
value = { id: '', secret: '', tenant: '' }
} else {
value = { id: '', secret: '' }
}
} else {
value = undefined
}