The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/app/github/server/lib.ts

19 lines
597 B

import type { OauthConfig } from '@rocket.chat/core-typings';
import { CustomOAuth } from '../../custom-oauth/server/custom_oauth_server';
const config: OauthConfig = {
serverURL: 'https://github.com',
identityPath: 'https://api.github.com/user',
tokenPath: 'https://github.com/login/oauth/access_token',
scope: 'user:email',
mergeUsers: false,
addAutopublishFields: {
forLoggedInUser: ['services.github'],
forOtherUsers: ['services.github.username'],
},
accessTokenParam: 'access_token',
identityTokenSentVia: 'header',
};
export const Github = new CustomOAuth('github', config);