kar*_*hah 5 java authentication api web-services jhipster
大家好,我正在 ubuntu 操作系统上开发 Jhipster。我的项目设置已成功完成。但是当尝试测试 api 时,它给了我身份验证错误。
这是测试 API 时发生的错误。如果有人帮助我,我会很高兴。
错误:
rExceptionResolver : Resolved exception caused by Handler execution: org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource
Run Code Online (Sandbox Code Playgroud)
网页浏览器
{
"type" : "https://www.jhipster.tech/problem/problem-with-message",
"title" : "Unauthorized",
"status" : 401,
"detail" : "Full authentication is required to access this resource",
"path" : "/api/account",
"message" : "error.http.401"
}
Run Code Online (Sandbox Code Playgroud)
Jhipster用户创建默认配置的问题。
当我们使用 Jhipster 创建应用程序和实体时,它还会创建用户身份验证作为其功能。
但就我而言,用户不是在我在创建过程中选择的数据库中创建的。
责任表:
因此,我们只需要在这些表中提供 Jhipster 默认用户的详细信息即可。
用户名:admin
密码:admin
确保密码采用加密形式。