mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
|
import type { ConnectorMetadata } from '@logto/connector-kit';
|
||
|
import { ConnectorPlatform, ConnectorConfigFormItemType } from '@logto/connector-kit';
|
||
|
|
||
|
export const authorizationEndpoint = 'https://nid.naver.com/oauth2.0/authorize';
|
||
|
export const accessTokenEndpoint = 'https://nid.naver.com/oauth2.0/token';
|
||
|
export const userInfoEndpoint = 'https://openapi.naver.com/v1/nid/me';
|
||
|
|
||
|
export const defaultMetadata: ConnectorMetadata = {
|
||
|
id: 'naver-universal',
|
||
|
target: 'naver',
|
||
|
platform: ConnectorPlatform.Universal,
|
||
|
name: {
|
||
|
en: 'Naver',
|
||
|
'zh-CN': 'Naver',
|
||
|
'tr-TR': 'Naver',
|
||
|
ko: '네이버',
|
||
|
},
|
||
|
logo: './logo.svg',
|
||
|
logoDark: null,
|
||
|
description: {
|
||
|
en: 'Naver is the most leading internet service provider in South Korea',
|
||
|
'zh-CN': 'Naver is the most leading internet service provider in South Korea',
|
||
|
'tr-TR': 'Naver is the most leading internet service provider in South Korea',
|
||
|
ko: '네이버는 한국에서 가장 선도적인 인터넷 서비스 제공자 입니다.',
|
||
|
},
|
||
|
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>',
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
|
||
|
export const defaultTimeout = 5000;
|