2017-04-24 87 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的一些常見用例的示例項目。

相關問題