google-code-export / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
1 stars 1 forks source link

URL Parameter on logout breaks #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login as any user
2. Logout using the url parameter (/logout?url=http://www.example.com)

I am currently running from the latest git installed manually.

The issue seems to be caused by there not being a logout.erb file in 
lib/casserver/views

Original issue reported on code.google.com by diano...@3dgo.net on 24 Feb 2011 at 3:43

GoogleCodeExporter commented 9 years ago
I see the same behavior.  It may just be something to do with the root 
pathnames/parameters setup because "https://cas.blah.com/login?logout" works 
fine.  FYI I'm using mod_proxy as the front end.

I'm not a Ruby guy so I don't know much on how to make that kind of fix.  
Perhaps a Rewrite rule in the short-term would work?

Original comment by eash...@gmail.com on 1 Mar 2011 at 1:37

GoogleCodeExporter commented 9 years ago
any idea how to fix this?  I'm getting the same behavior.

Original comment by kker...@gmail.com on 31 Jul 2011 at 6:53

GoogleCodeExporter commented 9 years ago
I added the following in an logout.erb file and it fixed the problem.

<%# coding: UTF-8 -%>
<table id="login-box">
  <tr>
    <td colspan="2">
      <div id="headline-container">
        <strong><%= escape_html @organization %></strong>
        <%= _(" Central Login") %>
      </div>
    </td>
  </tr>

  <% if @message %>
  <tr>
    <td colspan="2" id="messagebox-container">
      <div class="messagebox <%= escape_html @message[:type] %>">
        <%= escape_html @message[:message] %>
      </div>
    </td>
  </tr>
  <% end %>

  <tr>
    <td id="logo-container">
      <img id="logo" src="<%= escape_html @uri_path %>/themes/<%= @theme %>/logo.png" />
    </td>
    <td id="login-form-container">
      <%= erb(:_login_form, :layout => false) %>
    </td>
  </tr>
</table>

Original comment by kker...@gmail.com on 31 Jul 2011 at 8:09