要解决AWS ADFS在认证后不会重定向回Kibana的问题,您可以尝试以下解决方法。
确保正确配置了AWS ADFS和Kibana。
检查AWS ADFS的配置文件(例如ADFS_HOME/AwsProxy/Configuration/ADFSConfiguration.xml)是否正确设置了Kibana的重定向URL。确保在Application节点中正确设置了RedirectUri和LogoutUri。
https://your-kibana-url
https://your-kibana-url/logout
检查Kibana的配置文件(例如KIBANA_HOME/config/kibana.yml)是否正确设置了AWS ADFS的认证代理URL。确保在elasticsearch.ssl.certificateAuthorities和xpack.security.authc.providers设置了正确的URL。
elasticsearch.ssl.certificateAuthorities: ['/path/to/adfs.crt']
xpack.security.authc.providers: ['saml']
xpack.security.authc.saml.realm: 'adfs'
xpack.security.authc.saml.idp.metadata.path: '/path/to/adfs.xml'
检查Kibana的代理服务器是否正确配置了ADFS。确保在代理服务器的配置文件中配置了正确的ADFS URL和证书。
server {
listen 443;
server_name your-kibana-url;
ssl_certificate /path/to/adfs.crt;
ssl_certificate_key /path/to/adfs.key;
location / {
proxy_pass https://your-adfs-url;
proxy_set_header Host $host;
}
}
如果上述步骤都正确配置了,但仍然存在问题,您可以尝试重新启动AWS ADFS和Kibana服务,以确保配置的更改生效。
请根据您的具体情况调整以上代码示例中的URL和路径,并确保将其与您的实际环境匹配。