From a8cf3ef4243b76894b30764647091e48a0f1b60b Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Tue, 16 Apr 2024 12:32:48 +0200 Subject: [PATCH] feat: add visma oauth (#3564) --- backend/oauth_connect.json | 11 +++++++++++ frontend/src/lib/components/InstanceSettings.svelte | 3 ++- frontend/src/lib/components/icons/VismaIcon.svelte | 11 +++++++++++ frontend/src/lib/components/icons/index.ts | 6 ++++-- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 frontend/src/lib/components/icons/VismaIcon.svelte diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json index c63d09bf0a..034aece2f4 100644 --- a/backend/oauth_connect.json +++ b/backend/oauth_connect.json @@ -141,5 +141,16 @@ "scopes": [ "com.intuit.quickbooks.accounting" ] + }, + "visma": { + "auth_url": "https://connect.visma.com/connect/authorize", + "token_url": "https://connect.visma.com/connect/token", + "scopes": [ + "offline_access", + "vismanet_erp_interactive_api:create", + "vismanet_erp_interactive_api:delete", + "vismanet_erp_interactive_api:read", + "vismanet_erp_interactive_api:update" + ] } } \ No newline at end of file diff --git a/frontend/src/lib/components/InstanceSettings.svelte b/frontend/src/lib/components/InstanceSettings.svelte index 23fb669780..d31ed2a34a 100644 --- a/frontend/src/lib/components/InstanceSettings.svelte +++ b/frontend/src/lib/components/InstanceSettings.svelte @@ -164,7 +164,8 @@ 'gworkspace', 'basecamp', 'linkedin', - 'quickbooks' + 'quickbooks', + 'visma' ] let oauth_name = undefined diff --git a/frontend/src/lib/components/icons/VismaIcon.svelte b/frontend/src/lib/components/icons/VismaIcon.svelte new file mode 100644 index 0000000000..b735426965 --- /dev/null +++ b/frontend/src/lib/components/icons/VismaIcon.svelte @@ -0,0 +1,11 @@ + + + + + diff --git a/frontend/src/lib/components/icons/index.ts b/frontend/src/lib/components/icons/index.ts index d2f04fd9eb..aa8e043d38 100644 --- a/frontend/src/lib/components/icons/index.ts +++ b/frontend/src/lib/components/icons/index.ts @@ -86,6 +86,7 @@ import IpinfoIcon from './IpinfoIcon.svelte' import GoogleCloudIcon from './GoogleCloudIcon.svelte' import CaCertificate from './CACertificate.svelte' import CurrencyApiIcon from './CurrencyApiIcon.svelte' +import VismaIcon from './VismaIcon.svelte' export const APP_TO_ICON_COMPONENT = { postgresql: PostgresIcon, @@ -179,7 +180,8 @@ export const APP_TO_ICON_COMPONENT = { gworkspace: GoogleIcon, gcp_service_account: GoogleCloudIcon, cacertificate: CaCertificate, - currencyapi: CurrencyApiIcon + currencyapi: CurrencyApiIcon, + visma: VismaIcon } as const export { @@ -266,4 +268,4 @@ export { GoogleCloudIcon, CaCertificate, CurrencyApiIcon -} \ No newline at end of file +}