Hi i wanted to get attributes from my principal attributes to
my Authenticated Services:

but when i authenticated on correspondencia service it get no info on
attributes or principal


[image: Imágenes integradas 1]

this is one of my json

{
  "@class" : "org.jasig.cas.services.RegexRegisteredService",
  "serviceId" : "^http://localhost:8080/correspondencia.*";,
  "name" : "CorrespondenciaDos",
  "id" : 600,
  "description" : "CorrespondenciaDos",
  "attributeReleasePolicy" : {
    "@class" : "org.jasig.cas.services.ReturnAllAttributeReleasePolicy"
  },
  "evaluationOrder" : 2
}

and this is the other

{
  "@class" : "org.jasig.cas.services.RegexRegisteredService",
  "serviceId" : "^http://localhost:8080/correspondencia.*";,
  "name" : "Correspondencia",
  "id" : 1237411278735163,
  "description" : "correspondencia",
  "proxyPolicy" : {
    "@class" : "org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy"
  },
  "evaluationOrder" : 1,
  "logoutType" : "BACK_CHANNEL",
  "attributeReleasePolicy" : {
    "@class" : "org.jasig.cas.services.ReturnAllAttributeReleasePolicy",
    "principalAttributesRepository" : {
      "@class" :
"org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository"
    },
    "authorizedToReleaseCredentialPassword" : false,
    "authorizedToReleaseProxyGrantingTicket" : false
  },
  "accessStrategy" : {
    "@class" :
"org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy",
    "enabled" : true,
    "ssoEnabled" : true,
  }
}

i try using this to:

"usernameAttributeProvider" : {
    "@class" : 
"org.jasig.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider",
    "usernameAttribute" : "cn"
  }

on the first json but dosent work i descomment this lines on my cas.properties


##
# CAS PersonDirectory Principal Resolution
#
 cas.principal.resolver.persondir.principal.attribute=cn
 cas.principal.resolver.persondir.return.null=false


so i wanted to know if im doing right way, please help me

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANEG9%2BcryZpovnYVNDO%3DR-32cE7EYRdXPes7eGg0E1TMehRoTg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to