Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shiro会给token前加上Bearer字符串 #30

Closed
disabilites opened this issue Feb 19, 2020 · 3 comments
Closed

shiro会给token前加上Bearer字符串 #30

disabilites opened this issue Feb 19, 2020 · 3 comments
Labels
question Further information is requested

Comments

@disabilites
Copy link

String token = (String)authenticationToken.getCredentials();
这里获取的token前会被加上Bearer

原本应该是:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjdXJyZW50VGltZU1pbGx ……

现在
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjdXJyZW50VGltZU1pbGx ……

@dolyw
Copy link
Owner

dolyw commented Feb 19, 2020

不会的哦,这个是你自己调用工具的问题,你检测下你调用接口的工具吧

@dolyw dolyw added the question Further information is requested label Feb 19, 2020
@disabilites
Copy link
Author

谢谢,是 postman 给我加上的😂

@dolyw
Copy link
Owner

dolyw commented Feb 19, 2020

嗯嗯,看到这个Bearer我就猜是这样,哈哈哈

@dolyw dolyw closed this as completed Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants