There is an easy way to add social login on Jhipster microservice Gateway?

大城市里の小女人 提交于 2020-01-14 03:35:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!