Hi gents,
I think this is a bug in cas 6.6.x that when you activate delegate 
authentication with custom  Access Strategy extended 
of BaseRegisteredServiceAccessStrategy, you will got a NullPointerException:
















*java.lang.NullPointerException: null        at 
org.apereo.cas.pac4j.client.DefaultDelegatedClientIdentityProviderRedirectionStrategy.select(DefaultDelegatedClientIdentityProviderRedirectionStrategy.java:63)
 
~[cas-server-support-pac4j-core-6.6.14.jar!/:6.6.14]        at 
org.apereo.cas.pac4j.client.ChainingDelegatedClientIdentityProviderRedirectionStrategy.lambda$select$0(ChainingDelegatedClientIdentityProviderRedirectionStrategy.java:40)
 
~[cas-server-support-pac4j-core-6.6.14.jar!/:6.6.14]        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) 
~[?:?]        at 
java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1631) 
~[?:?]        at 
java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
 
~[?:?]        at 
java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502) 
~[?:?]        at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488) 
~[?:?]        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) 
~[?:?]        at 
java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150) 
~[?:?]        at 
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
~[?:?]        at 
java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543) 
~[?:?]        at 
org.apereo.cas.pac4j.client.ChainingDelegatedClientIdentityProviderRedirectionStrategy.select(ChainingDelegatedClientIdentityProviderRedirectionStrategy.java:43)
 
~[cas-server-support-pac4j-core-6.6.14.jar!/:6.6.14]               at 
org.apereo.cas.web.flow.DefaultDelegatedClientIdentityProviderConfigurationProducer.produce(DefaultDelegatedClientIdentityProviderConfigurationProducer.java:64)
 
~[cas-server-support-pac4j-core-6.6.14.jar!/:6.6.14]                at 
org.apereo.cas.web.flow.actions.DelegatedAuthenticationGenerateClientsAction.produceDelegatedAuthenticationClientsForContext(DelegatedAuthenticationGenerateClientsAction.java:45)
 
~[cas-server-support-pac4j-webflow-6.6.14.jar!/:6.6.14]*
*......*
Service definition:
{
  "@class" : "org.apereo.cas.services.OidcRegisteredService",
  "clientId": "clientid",
  "clientSecret": "clientsecret",
  "serviceId" : "http://localhost:3000(.*)",
  "name" : "OAuthService",
  "id" : 54,
  "scopes" : [ "java.util.HashSet", [ "profile", "openid" ] ],
  "accessStrategy":
  {
    "@class": "org.apereo.cas.services.RemoteEndpointServiceAccessStrategy",
    "order": 0,
    "enabled": true,
    "ssoEnabled": true,
    "delegatedAuthenticationPolicy":
    {
      "@class": 
"org.apereo.cas.services.DefaultRegisteredServiceDelegatedAuthenticationPolicy"
    },
 
   "requireAllAttributes": true,
    "rejectedAttributes":
    {
      "@class": "java.util.HashMap"
    },
    "caseInsensitive": false,
    "endpointUrl": "http://example.com/api";,
    "acceptableResponseCodes": "200,202"
  }
}
Any ideas?

-- 
- 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/bb9037d4-1e3e-4ca9-9c04-2d10f146314fn%40apereo.org.

Reply via email to