Jhipster 生成器跳过 --skip-server 处的身份验证代码

2024-06-19

为什么当我们使用“--skip-server”生成项目时

哟 jhipster --skip-server

部分身份验证丢失。 (在 AJS/A2 上)。是吗? 每次我需要粘贴部分代码(Angular 上的 AuthServerProvider 或 AngularJS 上的 authExpiredInterceptor)用于工作主页


因为您没有指定要使用的身份验证类型--auth选项。 请参阅doc https://www.jhipster.tech/creating-an-app/#-tips or run jhipster client --help.

所以在你的情况下,你应该运行:jhipster client --auth=jwt用于 JWT 身份验证或您想要的身份验证。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Jhipster 生成器跳过 --skip-server 处的身份验证代码 的相关文章

随机推荐