mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
98bf0da8ff
* fix(cli): translate command * refactor(cli): add lint util method
59 lines
1.7 KiB
TypeScript
59 lines
1.7 KiB
TypeScript
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: '<client-id>',
|
|
},
|
|
{
|
|
key: 'clientSecret',
|
|
type: ConnectorConfigFormItemType.Text,
|
|
required: true,
|
|
label: 'Client Secret',
|
|
placeholder: '<client-secret>',
|
|
},
|
|
{
|
|
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: '<tenant-id>',
|
|
},
|
|
],
|
|
};
|
|
|
|
export const defaultTimeout = 5000;
|