Spring Boot OAuth2授权服务器,具有两步登录功能

时间:2017-04-24 21:21:08

标签: java spring spring-boot oauth-2.0 spring-security-oauth2

我正在尝试使用Spring Boot和OAuth2与JWT建立一个小型微服务风格项目。

这是我想要的流程:

-> user clicks login and is taken to login page on Auth server
-> user logs in
-> user selects or creates a profile
-> login returns with the selected profile as part of the JWT

我知道如何在JWT令牌中填充其他数据,但我丢失的地方是两步登录。

以前在使用传统Spring Security的单片Spring中,我会做一些过滤器检查是否存在包含当前配置文件的cookie,如果不存在则重定向到“select / make a profile”屏幕。

TIA

1 个答案:

答案 0 :(得分:0)

也许你可以找到一些灵感here。 此存储库包含示例项目,其中包含OAuth2的一些常见用例。

相关问题