Jhipster生成器在--skip-server处跳过身份验证代码 [英] Jhipster generator skip auth code at --skip-server
问题描述
为什么我们使用'--skip-server'生成项目
Why when we generate project with '--skip-server'
yo jhipster --skip-server
yo jhipster --skip-server
部分身份验证丢失. (在AJS/A2上),对吗? 每次我需要粘贴部分代码(Angular上的AuthServerProvider或AngularJS上的authExpiredInterceptor)以工作主页时
part of authentication is lost. (on AJS/A2).It's right? Everytime i need to paste part code (AuthServerProvider on Angular or authExpiredInterceptor on AngularJS) for working home page
推荐答案
因为您没有使用--auth
选项指定所需的身份验证类型.
请参见 doc 或运行jhipster client --help
.
Because you did not specify which authentication type you want with --auth
option.
See the doc or run jhipster client --help
.
因此,在您的情况下,应运行:jhipster client --auth=jwt
进行JWT身份验证或所需的身份验证.
So in your case, you should run: jhipster client --auth=jwt
for JWT authentication or the one you want.
这篇关于Jhipster生成器在--skip-server处跳过身份验证代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!