2017-04-24 88 views
0

我正在尝试使用Spring Boot和OAuth2与JWT建立一个小型微服务样式项目。Spring Boot具有2步登录的OAuth2授权服务器

这里的流量,我想:

-> 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额外的数据令牌,但在那里我失去的只是2步登录。

以前在单片Spring与传统的Spring Security我会做一些类似的过滤器检查是否存在包含当前配置文件的cookie,如果不存在,则重定向到“选择/创建配置文件”屏幕。

TIA

回答

0

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

相关问题