apigee-edge-js
Version:
nodejs library for the administration API for Apigee (Edge and X and hybrid).
15 lines (13 loc) • 372 B
JavaScript
/* jshint esversion: 6, node: true, strict:false */
module.exports = function getLoginBaseUrl(options) {
if (options.ssoZone) {
return 'https://' + options.ssoZone + '.login.apigee.com';
}
if (options.ssoUrl) {
return options.ssoUrl;
}
if (options.keyfile) {
return 'https://oauth2.googleapis.com/token';
}
return 'https://login.apigee.com';
};