优化Feign拦截器,增加access_token、username、roles、client等重要参数传递

This commit is contained in:
zlt
2019-08-05 20:34:09 +08:00
parent b5f71b9506
commit 261b74bd38
6 changed files with 72 additions and 20 deletions
@@ -12,6 +12,13 @@ public interface CommonConstant {
*/
String TOKEN_HEADER = "Authorization";
/**
* The access token issued by the authorization server. This value is REQUIRED.
*/
String ACCESS_TOKEN = "access_token";
String BEARER_TYPE = "Bearer";
/**
* 标签 header key
*/