通过OAuth接入keycloak认证

This issue has been tracked since 2020-12-04.

在拿到 access_token 后,获取用户信息时,keycloak 返回 token not provide 错误。我看了一下代码,access_token是当作参数传入的,但是keycloak 的请求方式要 token 写在 header 的 Authorization 字段里

zhouruicn wrote this answer on 2021-03-12

在代码中有针对Header的判断
if (StringUtils.isEmpty(accessToken)) {
String bearer = request.getHeader(HttpToken.X_Authorization);
if (StringUtils.isNotEmpty(bearer)) {
accessToken = StringUtils.substringAfter(bearer, " ");
}
}
2b318c3

请提供一下您那里的信息,是否是格式不匹配.

More Details About Repo
Owner Name o2oa
Repo Name o2oa
Full Name o2oa/o2oa
Language JavaScript
Created Date 2017-02-14
Updated Date 2022-06-23
Star Count 3171
Watcher Count 120
Fork Count 1032
Issue Count 30

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date