Keycloak server & Keycloak proxy

1. OAuth 2.0 基于“授权码”的授权模式

第一种授权方式:授权码

转载自: ​​​​​​OAuth 2.0 的四种方式 - 阮一峰的网络日志 (ruanyifeng.com)

授权码(authorization code)方式,指的是第三方应用先申请一个授权码,然后再用该码获取令牌。

这种方式是最常用的流程,安全性也最高,它适用于那些有后端的 Web 应用。授权码通过前端传送,令牌则是储存在后端,而且所有与资源服务器的通信都在后端完成。这样的前后端分离,可以避免令牌泄漏。

2. Keycloak-proxy

GitHub - ernsheong/keycloak-proxy: A OpenID / Keycloak Proxy service

Keycloak-proxy is a proxy service which at the risk of stating the obvious integrates with the Keycloak authentication service. Although technically the service has no dependency on Keycloak itself and would quite happily work with any OpenID provider. The service supports both access tokens in browser cookie or bearer tokens.

3.  应用service Pod把keycloak-proxy作为side-card 跟 Keycloak Server 建立基于 OAuth 2.0 的token 授权认证模式

上一篇:Nginx配置动静分离


下一篇:Nginx配置负载均衡