2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-08-01 04:27:57 -07:00
|
|
|
|
2022-07-24 08:36:17 -07:00
|
|
|
const scopes = ['https://www.googleapis.com/auth/userinfo.email'];
|
2021-08-01 04:27:57 -07:00
|
|
|
|
|
|
|
export class GooglePerspectiveOAuth2Api implements ICredentialType {
|
|
|
|
name = 'googlePerspectiveOAuth2Api';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-07-24 08:36:17 -07:00
|
|
|
extends = ['googleOAuth2Api'];
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-08-01 04:27:57 -07:00
|
|
|
displayName = 'Google Perspective OAuth2 API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-10-20 08:52:03 -07:00
|
|
|
documentationUrl = 'google/oauth-single-service';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-10-07 14:07:56 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-08-01 04:27:57 -07:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'hidden',
|
2021-08-01 04:27:57 -07:00
|
|
|
default: scopes.join(' '),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|