kevinoconnor7 / osTicket-auth-cas

JASIG CAS Authentication plugin for osTicket
GNU General Public License v2.0
13 stars 8 forks source link

URL Not supported #21

Open banetbi opened 4 years ago

banetbi commented 4 years ago

I have osticket 1.12.2 running on php 7.2.19 and apache2. I was running 1.9.12 and had cas authentication working fine. Once I upgraded, I only get the message "URL not supported" when I try to use CAS authentication. Any idea as to what the issue could be?

kevinoconnor7 commented 4 years ago

I cannot reproduce this in my demo environment. What URL do you end up on when you get this error?

banetbi commented 4 years ago

Sorry for the late response, I missed the email notification. I get https://libsys.swem.wm.edu/api/auth/ext?ticket= as the resulting url

Thanks

banetbi commented 4 years ago

Here is my virtualhost config in case it is relevant

ServerName libsys.swem.wm.edu

  ## Vhost docroot
  DocumentRoot "/var/www/libsys.swem.wm.edu/public_html"

  ## Directories, there should at least be a declaration for /var/www/libsys.swem.wm.edu/public_html

  <Directory "/var/www/libsys.swem.wm.edu/public_html">
    Options +IncludesNOEXEC
    AllowOverride None
    Require all granted
  </Directory>

  <Location "/api">
    Require all granted
    # Rewrite rules
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.*/api)
    RewriteRule ^(.*)$ %1/http.php/$1 [L]
  </Location>

  ## Logging
  ErrorLog "/var/log/apache2/libsys.swem.wm.edu_error.log"
  ServerSignature Off
  CustomLog "/var/log/apache2/libsys.swem.wm.edu_access.log" combined
  SetEnvIf X-Forwarded-Proto https HTTPS=on
  php_value include_path ".:/var/www/libsys.swem.wm.edu:/usr/share/php:/usr/share/pear"
  php_admin_value error_reporting 2039
  php_admin_value open_basedir .:/var/www/libsys.swem.wm.edu:/usr/share/php:/usr/share/pear:/var/www/temp:/tmp
  php_admin_value upload_max_filesize 125M
kevinoconnor7 commented 4 years ago

FYI: I edited your comment to remove the ticket, since it could be used to login.

kevinoconnor7 commented 4 years ago

I don't see anything wrong with your config and you are indeed ending up at the correct address. My only guess is that your RewriteRule isn't working correctly, but I don't see any reason why it wouldn't be.

caguest commented 3 years ago

Realize that this is old, but had the same issue after a hosting server move. Installing/Enabling mod_rewrite in Apache corrected the issue for me.