问题
When I generate a monolithic app using yo, I'm asked if I want to use social login, but this doesn't happen during gateway creation on microservice model.
Is there an easy way of adding social login on microservice gateway, or do I need to make it manually?
回答1:
As far as I know, it is not possible without changing the structure of the generator.
This cannot be a recommended approach but you may force the variable 'enableSocialSignIn' in .yo-rc.json or directly in the prompt.js file of the server repository.
function askForServerSideOpts() {
...
this.enableSocialSignIn = true;
done();
}.bind(this));
}
来源:https://stackoverflow.com/questions/38127414/there-is-an-easy-way-to-add-social-login-on-jhipster-microservice-gateway