[cas-dev] About CAS schema

Bruno Bonfils asyd at asyd.net
Mon Oct 29 05:07:14 EDT 2007


Hello, 

I need to add some little authorization informations in the
serviceValidate response sent to the agent. Howover, the actual CAS XSD
(at least in version 2) doesn't allow some extra tags. Have you planned
to have something like :

   <xs:complexType name="ServiceResponseType">
        <xs:choice>
            <xs:element name="authenticationSuccess" type="cas:AuthenticationSuccessType"/>
            <xs:element name="authenticationFailure" type="cas:AuthenticationFailureType"/>
            <xs:element name="proxySuccess" type="cas:ProxySuccessType"/>
            <xs:element name="proxyFailure" type="cas:ProxyFailureType"/>
            <xs:element name="extraInformation" type="cas:ExtraInformation" minOccurs="0" />
        </xs:choice>
    </xs:complexType>

    <xs:complexType name="ExtraInformation">
        <xs:sequence>
            <xs:any></xs:any>
        </xs:sequence>
    </xs:complexType>

(it's just an idea, I'm not an XML expert ! :)

This way, extra informations (in my case a x509 certificate) can be
added to the response, and *may* be interpret by some advanced agent,
while the standard agents can still validate the schema, and found
required informations.

Thanks

-- 
http://asyd.net/home/   - Home Page
http://guses.org/home/  - French Speaking (Open)Solaris User Group


More information about the cas-dev mailing list