0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00
logto/packages/connectors/connector-apple/src/constant.ts
Gao Sun 6b322a537c
refactor: add connector packages
the initial commit to move all connector packages to the main
repo.
2023-04-01 15:53:14 +08:00

43 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { ConnectorMetadata } from '@logto/connector-kit';
import { ConnectorPlatform, ConnectorConfigFormItemType } from '@logto/connector-kit';
// https://appleid.apple.com/.well-known/openid-configuration
export const issuer = 'https://appleid.apple.com';
export const authorizationEndpoint = `${issuer}/auth/authorize`;
export const accessTokenEndpoint = `${issuer}/auth/token`;
export const jwksUri = `${issuer}/auth/keys`;
// Note: only support fixed scope for v1.
export const scope = ''; // Note: `openid` is required when adding more scope(s)
export const defaultMetadata: ConnectorMetadata = {
id: 'apple-universal',
target: 'apple',
platform: ConnectorPlatform.Universal,
name: {
en: 'Apple',
'zh-CN': 'Apple',
'tr-TR': 'Apple',
ko: 'Apple',
},
logo: './logo.svg',
logoDark: './logo-dark.svg',
description: {
en: 'Apple is a multinational high-end provider of hardware and software.',
'zh-CN': 'Apple 是全球领先的高端消费者软硬件提供商。',
'tr-TR': 'Apple, çok uluslu bir üst düzey donanım ve yazılım sağlayıcısıdır.',
ko: 'Apple은 하드웨어와 소프트웨어의 다국적 공급자 입니다.',
},
readme: './README.md',
formItems: [
{
key: 'clientId',
type: ConnectorConfigFormItemType.Text,
required: true,
label: 'Client ID',
placeholder: '<client-id>',
},
],
};
export const defaultTimeout = 5000;