【发布时间】:2017-12-29 11:00:38
【问题描述】:
我创建了一个带有 JWT 身份验证的 JHipster 微服务应用程序(我只有“后端”,没有 Angular GUI)。
在我的 application-dev.yml 中,我有以下几行:
jhipster:
security:
authentication:
jwt:
secret: password
# Token is valid 24 hours
token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000
如何使用“Restlet”(Google Chrome 扩展程序)之类的客户端访问 API。
我在访问 /api/authenticate 时阅读了一些关于获取令牌的信息,但它不起作用 (JHipster authentication using Postman and JWT)
在哪里可以检索到 JWT Token 以及如何在后续请求中使用它?
【问题讨论】:
标签: java authentication spring-security jhipster