Getting a new error for ws federation idp claims in all 6.0.1-6.0.5 
versions ( I swear this ws-federation implementation is like the mythical 
Lernaean Hydra :) I have been trying with all cas versions between 5.0 - 
6.0 and each time I find new, different errors...  not sure if anyone ever 
got wsfederation to work?) 

All suggestions are appreciated: 
https://apereo.github.io/cas/6.0.x/protocol/WS-Federation-Protocol.html

^[[1;31m2019-06-27 16:58:25,412 ERROR [org.jasig.cas.client.util.XmlUtils] 
- <Element or attribute do not match QName production: 
QName::=(NCName':')?NCName.>^[[m
org.xml.sax.SAXParseException: Element or attribute do not match QName 
production: QName::=(NCName':')?NCName.
        at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source) ~[xercesImpl-2.12.0.jar:?]
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown 
Source) ~[xercesImpl-2.12.0.jar:?]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at org.apache.xerces.impl.XMLEntityScanner.scanQName(Unknown 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source) ~[xercesImpl-2.12.0.jar:2.12.0]
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source) ~[xercesImpl-2.12.0.jar:?]
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source) ~[xercesImpl-2.12.0.jar:?]
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) 
~[xercesImpl-2.12.0.jar:?]
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source) ~[xercesImpl-2.12.0.jar:?]
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source) ~[xercesImpl-2.12.0.jar:?]
        at 
org.jasig.cas.client.util.XmlUtils.getTextForElement(XmlUtils.java:192) 
~[cas-client-core-3.5.1.jar:3.5.1]
        at 
org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseAuthenticationFailureFromResponse(Cas20ServiceTicketValidator.java:125)
 
~[cas-client-core-3.5.1.jar:3.5.1]
        at 
org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:81)
 
~[cas-client-core-3.5.1.jar:3.5.1]
        at 
org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:198)
 
~[cas-client-core-3.5.1.jar:3.5.1]
        at 
org.apereo.cas.ws.idp.web.WSFederationValidateRequestCallbackController.validateRequestAndBuildCasAssertion(WSFederationValidateRequestCallbackController.java:166)
 
~[cas-server-support-ws-idp-6.0.0.jar:6.0.0]
        at 
org.apereo.cas.ws.idp.web.WSFederationValidateRequestCallbackController.handleFederationRequest(WSFederationValidateRequestCallbackController.java:128)
 
~[cas-server-support-ws-idp-6.0.0.jar:6.0.0]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) ~[?:?]
        at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 
~[?:?]
        at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
~[?:?]


Claims were set up as:
{
  "@class" : "org.apereo.cas.ws.idp.services.WSFederationRegisteredService",
  "serviceId" : "https://xxx";,
  "realm" : "https://xxx";,
  "name" : "Sample WsFed Application",
  "id" : 100,
  "attributeReleasePolicy" : {
    "@class" : 
"org.apereo.cas.ws.idp.services.WSFederationClaimsReleasePolicy",
    "allowedAttributes" : {
      "@class" : "java.util.TreeMap",
      "NAME" : "givenName",
      "GIVEN_NAME" : "myName"
    }
  }
}

and attributes:

cas.authn.attributeRepository.stub.attributes.givenName=Billy
cas.authn.attributeRepository.stub.attributes.myName=Bob

Thank you.





-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/c2fa8027-b08f-4c87-8630-9db5b34998c7%40apereo.org.

Reply via email to