keycloak - 由于“非法 base64 数据”,Keycloak-gatekeeper 无法解码“状态”
问题描述
尝试访问受保护的资源时,我从 keycloak-gatekeeper 收到此错误
unable to decode the state parameter {"state": "8d07f10b-d096-4241-8a42-9f169de11352", "error": "illegal base64 data at input byte 8"}
这是我的码头工人撰写:
version: '3'
services:
keycloak-proxy:
image: "keycloak/keycloak-gatekeeper"
environment:
- PROXY_LISTEN=0.0.0.0:3000
- PROXY_DISCOVERY_URL=http://keycloak.example.com:8181/auth/realms/realmcom
- PROXY_CLIENT_ID=webapp
- PROXY_CLIENT_SECRET=0b57186c-e939-48ff-aa17-cfd3e361f65e
- PROXY_UPSTREAM_URL=http://test-server:8000
ports:
- "8282:3000"
command:
- "--verbose"
- "--enable-refresh-tokens=true"
- "--enable-default-deny=true"
- "--resources=uri=/*"
- "--enable-session-cookies=true"
- "--encryption-key=AgXa7xRcoClDEU0ZDSH4X0XhL5Qy2Z2j"
test-server:
image: "test-server"
解决方案
这似乎是一个错误 - https://github.com/keycloak/keycloak-gatekeeper/pull/433#issuecomment-443123758。您能否提交 Jira(https://issues.jboss.org/browse/KEYCLOAK),添加受影响的版本和重现问题的步骤?
推荐阅读
- python - 如何延迟 aiogram 命令?
- shell - 在 POSIX sh 中迭代位置参数时修改位置参数
- amazon-web-services - 尝试连接到 AWS Windows 实例时无法获取 Windows 密码
- php - 在 WooCommerce 管理订单列表的自定义列中显示每个订单项目的库存数量
- python - 基于python的ffmpeg操作中的问题
- android - ViewBinding 实践
- spring-boot - 使用 MySQL 的 Spring Cloud Sleuth
- express - Nuxt Auth 刷新令牌 - 身份验证失败
- javascript - 如何使用链式 Javascript 比较运算符?
- python-3.x - 有什么方法可以直接从 pdf 段落而不是元数据中获取 pdf 文件的标题?