Hi,

I have some problems of characters encoding and I'm looking for where comes the problem. My problem is to obtain a SAML ticket with attributes on my browser like we can do with the default serviceValidate, do you know a way to obtain it ? Because with the service validate we connect to CAS with an unknown url and we simulate the validation with the same url and the ticket returned, if it succeed we get the CAS ticket with attributes if we modified it. But with the SAML service it seems that doesn't works, I can get only a success saml ticket without attributes, like this one :

<?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="2009-02-20T08:35:32.063Z" MajorVersion="1" MinorVersion="1" Recipient="http://anurl/aservice/"; ResponseID="_bbdf6614d0d124ef3adbc053d9ac3038">
<Status><StatusCode 
Value="samlp:Responder"></StatusCode><StatusMessage>Success</StatusMessage></Status></Response></SOAP-ENV:Body></SOAP-ENV:Envelope>

whereas applications can get attributes like :

<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="2009-02-19T18:06:18.121Z" MajorVersion="1" MinorVersion="1" Recipient="http://anurl/aservice/"; ResponseID="_dde65f8779c1346fcce415ad89d8b11e"><Status><StatusCode Value="samlp:Success"></StatusCode></Status><Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion" AssertionID="_2305ab43992706500e699b55534d9f7d" IssueInstant="2009-02-19T18:06:18.121Z" Issuer="localhost" MajorVersion="1" MinorVersion="1"><Conditions NotBefore="2009-02-19T18:06:18.121Z" NotOnOrAfter="2009-02-19T18:06:48.121Z"><AudienceRestrictionCondition><Audience>http://anurl/aservice/</Audience></AudienceRestrictionCondition></Conditions> <AttributeStatement><Subject><NameIdentifier>F08000j0</NameIdentifier><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:artifact</ConfirmationMethod></SubjectConfirmation></Subject><Attribute AttributeName="dateNaissance" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>02/12/1991</AttributeValue></Attribute><Attribute AttributeName="user" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>XXXXXX</AttributeValue></Attribute><Attribute AttributeName="categorie" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>National_1</AttributeValue></Attribute><Attribute AttributeName="login" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>clementine.xxxxxxx</AttributeValue></Attribute><Attribute AttributeName="classe" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>ENTStructureSIREN=XXXXXXX,ou=structures,dc=esco-centre,dc=fr$721</AttributeValue></Attribute><Attribute AttributeName="prenom" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>Cl?mentine</AttributeValue></Attribute><Attribute AttributeName="nom" AttributeNamespace="http://www.ja-sig.org/products/cas/";><AttributeValue>XXXXXXX</AttributeValue></Attribute></AttributeStatement><AuthenticationStatement AuthenticationInstant="2009-02-19T18:06:18.106Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified"><Subject><NameIdentifier>XXXXXX</NameIdentifier><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:artifact</ConfirmationMethod>
</SubjectConfirmation></Subject></AuthenticationStatement></Assertion></Response></SOAP-ENV:Body></SOAP-ENV:Envelope>>


Like you can see my problem is that all specials characters on the client are replaced by a "?" All locals on the servers are fr_FR.UTF-8.

So I ask if there is a way to check on the CAS server if all characters are well encoded, I think it's OK normaly as in the cas ticket it's well formed, but i don't know for the saml service. Else if you have an other way to check it or to find the problem tell me ;)

Thanks,

Julien Gribonvald.

--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to