Jhipster生成器在--skip-server处跳过身份验证代码 [英] Jhipster generator skip auth code at --skip-server

查看:116
本文介绍了Jhipster生成器在--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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆