簡體   English   中英

Spring 安全單點登錄

[英]Spring security single sign on

我正在使用 Spring-Boot 和基於注解的 Spring-Security,我想使用另一個站點作為我的身份驗證提供程序之一。

我在谷歌上搜索,但沒有得到任何正確的例子或相關的解決方案。

讓我知道如何為 2 個不同的應用程序實現單點登錄。

請指導。

謝謝你。

您可以使用 Jasig CAS 來實現 SSO,它由 Spring Security 支持: https ://docs.spring.io/spring-security/site/docs/3.0.x/reference/cas.html

您可以在 spring-boot 應用程序上使用@EnableOAuth2Sso設置一些屬性:客戶端 ID、客戶端密碼、oauth2 服務器的令牌端點等。

本教程適用於 spring-boot 上的 angularJS 客戶端,但服務器端類似: https ://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security- 第五部分

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM