-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 500 - Invalid CAS ticket when redirect URL Contains Query Params #24
Comments
Hi, same problem here. Any explanation or solution for this issue would be great. Environment: Plugin version: redmine_omniauth_cas 3.3.0 |
Hey! For us the bug was actually located in the casino server. The url contains a https but the ticket.service is a cleaned url without https. So u need to take that comparison into account. We did that by editing: casino-4.1.2/app/processors/casino/service_ticket_processor.rb Old: Does that help you? Regards |
Hey Timo, thanks a lot for your reply! You mean that the change has to be done in the cas server, not in the plugin or Redmine application? Luis |
Yes. You can see in the the log that the plugin is working fine. |
I see. Thanks a lot for your help! |
jbbarth/redmine_omniauth_cas#24 For us the bug was actually located in the casino server. The url contains a https but the ticket.service is a cleaned url without https. So u need to take that comparison into account. We did that by editing: casino-4.1.2/app/processors/casino/service_ticket_processor.rb Method: validate_existing_ticket_for_service(ticket, service, options = {}) Line 75, 76 Old: elsif service != ticket.service New: elsif service != ticket.service && ("https://#{service}" != ticket.service)
Hello,
thanks for the amazing plugin <3
When the URL contains query params for example myredmine.com/issues?query_id=108 im getting redirected to the error page after authetication:
500
An invalid CAS ticket was specified, it may have expired. Please try authenticating in again.
After reloading the page I am getting redirected to the correct page and everything works fine.
Any suggestions?
Regards
linogfant
The text was updated successfully, but these errors were encountered: