由于“非法base64数据”,Keycloak-gatekeeper无法解码“状态”

时间:2018-11-30 02:06:52

标签: keycloak keycloak-gatekeeper

尝试访问受保护的资源时,我从keycloak-gatekeeper收到此错误

unable to decode the state parameter    {"state": "8d07f10b-d096-4241-8a42-9f169de11352", "error": "illegal base64 data at input byte 8"}

这是我的docker-compose:

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"

1 个答案:

答案 0 :(得分:2)

似乎是一个错误-https://github.com/keycloak/keycloak-gatekeeper/pull/433#issuecomment-443123758。您能否提交Jira(https://issues.jboss.org/browse/KEYCLOAK),添加受影响的版本和步骤来重现此问题?