Skip to content

Session id is being found as empty string #108

@tomascharad

Description

@tomascharad

Hi Nat,

After CAS emits the single sign out signal, some client apps (2/4) display the following log:

Processing by Devise::CasSessionsController#single_sign_out as */*
Parameters: {"logoutRequest"=>"<samlp:LogoutRequest xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" ID=\"13e9fe85-94a5-4eef-be1d-b4495bdafbe6\" Version=\"2.0\" IssueInstant=\"2015-10-09 15:02:42 +0000\">\n  <saml:NameID>@NOT_USED@</saml:NameID>\n  <samlp:SessionIndex>ST-14444029573823-15h6UlLwCJxqMmP7ofbvKl9R9rjISFMI4ydVAyZm</samlp:SessionIndex>\n</samlp:LogoutRequest>\n"}
Intercepted single-sign-out request for CAS session ST-14444029573823-15h6UlLwCJxqMmP7ofbvKl9R9rjISFMI4ydVAyZm.
2015-10-09T15:02:44.023279+00:00 app[web.2]:   Rendered text template (0.0ms)
Found session id  for index ST-14444029573823-15h6UlLwCJxqMmP7ofbvKl9R9rjISFMI4ydVAyZm

Please take a look where it says "Found session id for index". It seems that this line (

logger.debug("Found session id #{sid} for index #{session_index}")
) has the variable "sid" as an empty (probably string) and that this method "Rails.cache.read(cache_key(session_index))" May not be working as expected right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions