Skip to content

Logout endpoint tries to render non-existent view in some cases #227

@davexunit

Description

@davexunit

The end of the logout endpoint code in lib/casserver/server.rb, there's the following if block:

      if @gateway && @service
        redirect @service, 303
      elsif @continue_url
        render @template_engine, :logout
      else
        render @template_engine, :login
      end

The middle condition attempts to render a view that doesn't exist. Is this intentional? Are users expected to write a custom logout view? If not, would it make sense to redirect to @continue_url instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions