rubycas / rubycas-server

Provides single sign-on authentication for web applications, implementing the server-end of Jasig's CAS protocol.
http://rubycas.github.com
Other
628 stars 269 forks source link

Logout error #235

Open Keeehi opened 9 years ago

Keeehi commented 9 years ago

For logout url like this: https://accounts.example.cz/logout?url=http%3A%2F%2Fgoogle.com

I am getting error, that file lib/casserver/views/logout.erb is missing

ronald commented 5 years ago

Place the following code in lib/casserver/views/logout.erb

<%# coding: UTF-8 -%>
<table id="login-box">
  <tr>
    <td colspan="2">
      <div id="headline-container">
        <strong><%= escape_html @organization %></strong>
        <%= t.label.central_login_title %>
      </div>
    </td>
  </tr>

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