首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:在密钥罩网守的请求中找不到会话

错误:在密钥罩网守的请求中找不到会话
EN

Stack Overflow用户
提问于 2019-03-28 04:25:29
回答 1查看 2.5K关注 0票数 3

我试图通过keycloak保护kibana,但登录后,keycloak-gatekeeper抛出多个错误,浏览器显示ERR_TO_MANY_REDIRECTS:

代码语言:javascript
复制
info    issuing access token for user   {"email": "xxx@example.com", "expires": "2019-03-23T00:18:30Z", "duration": "1m3.401805266s"}
error   no session found in request, redirecting for authorization      {"error": "authentication session not found"}

我的keycloak-gatekeeper配置文件如下:

代码语言:javascript
复制
skip-openid-provider-tls-verify: true
secure-cookie: false
discovery-url: https://keycloak.example.com/auth/realms/REALM
client-id: kibana
client-secret: xxx-xxx...
listen: 0.0.0.0:3000
enable-refresh-tokens: true
redirection-url: http://kibana.example.com/
encryption-key: AgXa7xRcoClDEU0ZDSH4X0XhL5Qy2Z2j
upstream-url: http://kibana:5601

我的apache2 vhost配置文件如下:

代码语言:javascript
复制
Define VHOST_KIBANA kibana.example.com
<VirtualHost ${VHOST_KIBANA}:80>
    ServerName ${VHOST_KIBANA}

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    ProxyRequests On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://127.0.0.1:8180/
    ProxyPassReverse / http://127.0.0.1:8180/

    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

是什么导致了这个错误?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-05-15 23:34:11

问题出在apache配置上,它以这种方式正常工作:

代码语言:javascript
复制
Define VHOST_KIBANA kibana.example.com
<VirtualHost ${VHOST_KIBANA}:80>
    ServerName ${VHOST_KIBANA}

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    ProxyPreserveHost On

    ProxyPass / http://127.0.0.1:8180/
    ProxyPassReverse / http://127.0.0.1:8180/
</VirtualHost>
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55385869

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档