我一直在尝试为我的apache 2服务器上托管的osticket实现oauth2。在成功遵循文档official osticket documentation for oauth2 plugin之后
我曾经遇到过这样一个问题,在用户通过IdP进行身份验证后,应用程序无法重定向到/API/oauth端点,而服务器拒绝识别任何此类URL。error由于没有为Oauth2客户端插件的后端实现提供文档,我假设它会被自动处理。我应该采取哪些步骤?下面是我的Apache配置文件Osticket看起来像:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName abc.com
DocumentRoot /www/itsm
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/itsm_error.log
CustomLog ${APACHE_LOG_DIR}/itsm_access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName abc.com
DocumentRoot /var/www/osTicket/upload
<Directory /www/itsm/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/itsm_error.log
CustomLog ${APACHE_LOG_DIR}/itsm_access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/abc.com/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/abc.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/abc.com/privkey.pem
<Directory "/var/www/osTicket/upload">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /var/www/osTicket/upload/.htpasswd
Require valid-user
</Directory>
</VirtualHost>
1条答案
按热度按时间j2cgzkjk1#
这是在osticket 1.17.3 vanilla上工作-从ost webpage下载,带有oauth2/azure: