Revert "🔀 Merge branch 'oauth-support' of https://github.com/tildabio/n8n"

This reverts commit 0c5972bb98, reversing
changes made to 3de03b5097.
This commit is contained in:
Jan Oberhauser
2020-01-10 14:26:06 -06:00
parent 8b1fe83cc0
commit 70e972ff7d
12 changed files with 7 additions and 346 deletions

View File

@@ -252,21 +252,6 @@ export const restApi = Vue.extend({
return self.restApi().makeRestApiRequest('GET', `/credential-types`);
},
// Get OAuth2 Authorization URL using the stored credentials
OAuth2CredentialAuthorize: (sendData: ICredentialsResponse): Promise<string> => {
return self.restApi().makeRestApiRequest('GET', `/oauth2-credential/auth`, sendData);
},
// Verify OAuth2 provider callback and kick off token generation
OAuth2Callback: (code: string, state: string): Promise<string> => {
const sendData = {
'code': code,
'state': state,
};
return self.restApi().makeRestApiRequest('POST', `/oauth2-credential/callback`, sendData);
},
// Returns the execution with the given name
getExecution: async (id: string): Promise<IExecutionResponse> => {
const response = await self.restApi().makeRestApiRequest('GET', `/executions/${id}`);