官术网_书友最值得收藏!

Spring Cloud Security

This module is like an extension from Spring Security. However, distributed systems have different requirements for security. Normally, they have central identity management, or the authentication lies with the clients in the case of REST APIs. Normally, in distributed systems, we have microservices, and these services might have more than one instance in the runtime environment whose characteristics make the authentication module slightly different from monolithic applications. The module can be used together with Spring Boot applications and makes the OAuth2 implementation very easy with a couple of annotations and a few configurations. Also, some common patterns are supported, such as single sign-on, token relay, and token exchange.

For the microservice applications based on the Spring Cloud Netflix, it is particularly interesting because it enables downstream authentication to work with a Zuul proxy and offers support from Feign clients. An interceptor is used to fetch tokens.

Some commons annotations are  @EnableOAuth2Sso and  @EnableResourceServer.
主站蜘蛛池模板: 穆棱市| 昌吉市| 岐山县| 武夷山市| 汉川市| 钦州市| 宁德市| 吉安市| 宿松县| 邯郸市| 迁安市| 疏勒县| 海丰县| 邢台县| 曲松县| 资阳市| 星子县| 张家川| 都江堰市| 榕江县| 保德县| 疏附县| 昌吉市| 灵璧县| 西青区| 嘉禾县| 望谟县| 涿州市| 井研县| 珲春市| 同仁县| 图们市| 高密市| 思南县| 青铜峡市| 海盐县| 汤阴县| 泊头市| 凉山| 邯郸市| 赤峰市|