Graylog2 / graylog-plugin-auth-sso

SSO support for Graylog through trusted HTTP headers set by load balancers or authentication proxies
Other
50 stars 13 forks source link

Shibboleth SSO and API Tokens #30

Closed TheRealKingS closed 7 years ago

TheRealKingS commented 7 years ago

Problem description

We are using Shibboleth with this SSO Plugin. It works so far, but if i try to login via API-Token, i get an Redirect to Shibboleth. Is there any chance to use API Tokens and Shibboleth together?

Apache configuration:

<VirtualHost *:443>
    ServerName graylog.example.com
    ProxyRequests Off

    SSLEngine on
    SSLCertificateFile /etc/httpd/ssl/ssl.crt
    SSLCertificateKeyFile /etc/httpd/ssl/ssl.key
    SSLCertificateChainFile /etc/httpd/ssl/chain.txt

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

    <Location />
        RequestHeader set X-Graylog-Server-URL "https://graylog.example.com/api/"
        ProxyPass http://127.0.0.1:9000/
        ProxyPassReverse http://127.0.0.1:9000/
        AuthType shibboleth
        ShibRequestSetting requireSession 1
        ShibUseHeaders On
        require valid-user
    </Location>

Steps to reproduce the problem

  1. Configure Shibboleth and the plugin
  2. generate API Token for an user
  3. Try to query the api

Environment

jalogisch commented 7 years ago

We are using GitHub issues for tracking bugs in Graylog itself, but this doesn't look like one. Please post this issue to our discussion forum or join the #graylog channel on freenode IRC.

Thank you!