本文介绍了有一种简单的方法可以在Jhipster微服务网关上添加社交登录吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 yo 生成单一应用时,我被问到是否要使用社交登录,但在微服务模型的网关创建过程中不会发生这种情况。

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?

推荐答案

据我所知,如果不改变发电机的结构是不可能的。

As far as I know, it is not possible without changing the structure of the generator.

这不是推荐的方法,但您可以在.yo-rc.json中强制执行变量'enableSocialSignIn',也可以直接在服务器存储库的prompt.js文件中强制执行。

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));
}

这篇关于有一种简单的方法可以在Jhipster微服务网关上添加社交登录吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 11:26