Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们将使用 JHipster 搭建一个 Spring Boot 应用程序。如果我想通过Spring Rest Shell连接到 jhipster 生成的 REST API,我应该选择哪种身份验证类型?
这只是意见,但我会使用令牌身份验证。我刚刚为我的 JHipster 应用程序做了一个 Mule 连接器,我喜欢我可以检查是否存在令牌(== null),如果为 null,则为 api/authenticate。获得令牌后,我只需在每个 REST 请求中添加标头。
如果您的应用程序中不需要 OAuth,则基于令牌的方法将是最合适的。