made the github client ID in the login url variable by platform

pull/4/head
Chris Veilleux 2019-05-06 12:22:02 -05:00
parent 25fc448287
commit 739a52a493
4 changed files with 7 additions and 4 deletions

View File

@ -20,7 +20,7 @@ export class GithubButtonComponent {
gitHubLogin() {
this.generateStateParam();
let githubLoginUrl = 'https://github.com/login/oauth/authorize' +
'?scope=user:email&client_id=752bb0864dd667c902f4&state=' + this.stateParam;
'?scope=user:email&client_id=' + environment.githubClientId + '&state=' + this.stateParam;
if (this.newAccount) {
githubLoginUrl += '&redirect_uri=' + environment.mycroftUrls.singleSignOn + '/new-account';
}

View File

@ -9,5 +9,6 @@ export const environment = {
singleSignOn: 'https://sso.mycroft.test',
translate: 'https://translate-test.mycroft.ai',
wordPress: 'https://test.mycroft.ai'
}
},
githubClientId: '752bb0864dd667c902f4'
};

View File

@ -9,5 +9,6 @@ export const environment = {
singleSignOn: 'https://sso.mycroft-test.net',
translate: 'https://translate-test.mycroft.ai',
wordPress: 'https://test.mycroft.ai'
}
},
githubClientId: 'c3420f2cd3fcfe0446ce'
};

View File

@ -13,7 +13,8 @@ export const environment = {
singleSignOn: 'https://sso.mycroft.test',
translate: 'https://translate-test.mycroft.ai',
wordPress: 'https://test.mycroft.ai'
}
},
githubClientId: '752bb0864dd667c902f4'
};
/*