Skip to content

Instantly share code, notes, and snippets.

@rsvalerio
Created August 5, 2014 02:04
Show Gist options
  • Save rsvalerio/f8a8fd90ba8da8bfff6a to your computer and use it in GitHub Desktop.
Save rsvalerio/f8a8fd90ba8da8bfff6a to your computer and use it in GitHub Desktop.
saml_cas_problem
[DEBUG] org.jasig.cas.client.validation.Saml11TicketValidator - Loading custom parameters from configuration.
[DEBUG] org.jasig.cas.client.validation.Saml11TicketValidator - Constructing validation url: https://srvsionline1.no-ip.org:8443/governa-cas/samlValidate?TARGET=http%3A%2F%2Flocalhost%3A8080%2Fj_spring_cas_security_check
[DEBUG] org.jasig.cas.client.validation.Saml11TicketValidator - Retrieving response from server.
[DEBUG] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@2004df0510 pairs: {POST /governa-cas/samlValidate?TARGET=http%3A%2F%2Flocalhost%3A8080%2Fj_spring_cas_security_check HTTP/1.1: null}{Content-Type: text/xml}{SOAPAction: http://www.oasis-open.org/committees/security}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.7.0_60}{Host: srvsionline1.no-ip.org:8443}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}{Content-Length: 436}
[DEBUG] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@1fcdd1af7 pairs: {null: HTTP/1.1 200 OK}{Set-Cookie: visited=yes}{Expires: Thu, 01 Jan 1970 00:00:00 GMT}{Content-Language: pt-BR}{Content-Type: text/xml; charset=UTF-8}{Transfer-Encoding: chunked}{Server: Jetty(9.0.4.v20130625)}
[DEBUG] org.jasig.cas.client.validation.Saml11TicketValidator - Server response:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<Response xmlns="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" IssueInstant="2014-08-05T01:55:57.394Z" MajorVersion="1" MinorVersion="1" Recipient="http://localhost:8080/j_spring_cas_security_check" ResponseID="_720ed1f79c5511cc75161368669ac2ca">
<Status>
<StatusCode Value="samlp:Success"></StatusCode>
</Status>
<Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion" AssertionID="_4c97b0e3b114cb5224e324675b469f35" IssueInstant="2014-08-05T01:55:57.394Z" Issuer="localhost" MajorVersion="1" MinorVersion="1">
<Conditions NotBefore="2014-08-05T01:55:57.394Z" NotOnOrAfter="2014-08-05T01:56:27.394Z">
<AudienceRestrictionCondition>
<Audience>http://localhost:8080/j_spring_cas_security_check</Audience>
</AudienceRestrictionCondition>
</Conditions>
<AttributeStatement>
<Subject>
<NameIdentifier>eduardo</NameIdentifier>
<SubjectConfirmation>
<ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:artifact</ConfirmationMethod>
</SubjectConfirmation>
</Subject>
<Attribute AttributeName="authorities" AttributeNamespace="http://www.ja-sig.org/products/cas/">
<AttributeValue>ROLE_ANONYMOUS</AttributeValue>
<AttributeValue>ROLE_ADM</AttributeValue>
</Attribute>
<Attribute AttributeName="email" AttributeNamespace="http://www.ja-sig.org/products/cas/">
<AttributeValue>[email protected]</AttributeValue>
</Attribute>
</AttributeStatement>
<AuthenticationStatement AuthenticationInstant="2014-08-05T01:50:48.398Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
<Subject>
<NameIdentifier>eduardo</NameIdentifier>
<SubjectConfirmation>
<ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:artifact</ConfirmationMethod>
</SubjectConfirmation>
</Subject>
</AuthenticationStatement>
</Assertion>
</Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
[DEBUG] org.jasig.cas.client.validation.Saml11TicketValidator - skipping expired assertion...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment