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

能否讲解一下 普通请求的过滤流程 (非登陆请求) #15

Open
daniubi opened this issue Jan 28, 2019 · 2 comments
Open

Comments

@daniubi
Copy link

daniubi commented Jan 28, 2019

你好jojo老师 能否讲解一下 普通请求的过滤流程 (非登陆请求)
我想在每次请求 的返回里加上更新的token(如果需要更新的话) 不知道如何下手 希望指点 谢谢

@daniubi
Copy link
Author

daniubi commented Mar 26, 2019

就是每一次普通请求如何 验证是登录状态 是哪一个过滤器起作用 如何定制 谢谢

@momokanni
Copy link

你可以自定义创建一个AuthenticationToken将返回信息包裹起来,验证请求的登录状态要么携带cookie,这就需要从SecurityContext中取数据,要么携带token(jwt),这需要从redis或者其他缓存中取数据,解析验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants