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

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.
主站蜘蛛池模板: 鄂伦春自治旗| 吉水县| 壤塘县| 林西县| 贵南县| 荥经县| 依兰县| 海城市| 宜川县| 九江市| 石嘴山市| 屏山县| 寻乌县| 绥宁县| 湟源县| 龙井市| 淮阳县| 石河子市| 信丰县| 婺源县| 凭祥市| 雷波县| 松桃| 东辽县| 嵊州市| 平原县| 綦江县| 鄂托克前旗| 盐池县| 中卫市| 黄平县| 阿图什市| 调兵山市| 旅游| 裕民县| 澄迈县| 天台县| 和林格尔县| 永康市| 彰武县| 潍坊市|