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

感觉逻辑上缺少一环 #40

Open
Scalaaaaaa opened this issue Aug 17, 2020 · 0 comments
Open

感觉逻辑上缺少一环 #40

Scalaaaaaa opened this issue Aug 17, 2020 · 0 comments

Comments

@Scalaaaaaa
Copy link

看了《从零开始的Spring Security Oauth2(一)》,结合github模块client-credentials-springboot2,理一下整体逻辑:
资源(服务器)和认证(服务)器都在一个项目,从认证器的/oauth/token获取token,保存到redis(endpoints.tokenStore(new RedisTokenStore(redisConnectionFactory))),然后被保护的资源,资源服务器在哪验证的这个token呢?
我尝试在资源服务器的配置方法里configure(ResourceServerSecurityConfigurer resources)通过resources. 来看自动提示,
发现有设置tokenStore的方法,这样看来,代码漏了这一段?

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

1 participant