made the github client ID in the login url variable by platform
parent
25fc448287
commit
739a52a493
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
};
|
||||
|
|
|
@ -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'
|
||||
};
|
||||
|
|
|
@ -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'
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue