import type { ConnectorMetadata } from '@logto/connector-kit'; import { ConnectorPlatform, ConnectorConfigFormItemType } from '@logto/connector-kit'; export const graphAPIEndpoint = 'https://graph.microsoft.com/v1.0/me'; export const scopes = ['User.Read']; export const defaultMetadata: ConnectorMetadata = { id: 'azuread-universal', target: 'azuread', platform: ConnectorPlatform.Universal, name: { en: 'Microsoft', 'zh-CN': 'Microsoft', 'tr-TR': 'Microsoft', ko: 'Microsoft', }, logo: './logo.svg', logoDark: null, description: { en: 'Microsoft Azure Active Directory is a leading AD provider.', 'zh-CN': 'Microsoft Azure Active Directory 是领先的 AD 服务提供商。', 'tr-TR': 'Microsoft Azure Active Directory en büyük AD servisidir.', ko: 'Microsoft Azure Active Directory is the biggest AD provider.', }, readme: './README.md', formItems: [ { key: 'clientId', type: ConnectorConfigFormItemType.Text, required: true, label: 'Client ID', placeholder: '', }, { key: 'clientSecret', type: ConnectorConfigFormItemType.Text, required: true, label: 'Client Secret', placeholder: '', }, { key: 'cloudInstance', type: ConnectorConfigFormItemType.Text, required: true, label: 'Cloud Instance', placeholder: 'https://login.microsoftonline.com', defaultValue: 'https://login.microsoftonline.com', }, { key: 'tenantId', type: ConnectorConfigFormItemType.Text, required: true, label: 'Tenant ID', placeholder: '', }, ], }; export const defaultTimeout = 5000;