提交 d52bf4ae 编写于 作者: Z zhourui

增加bearer说明

上级 85eb124c
......@@ -163,6 +163,7 @@ public class HttpToken {
token = request.getHeader(X_Token);
}
if (StringUtils.isEmpty(token)) {
//如果使用oauth bearer 通过此传递认证信息.需要进行判断,格式为 Bearer xxxxxxx
String value = request.getHeader(X_Authorization);
if (!StringUtils.contains(value, " ")) {
token = value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册