CAS-SERVICES

15 views
Skip to first unread message

carlos maddaleno cuellar

unread,
Jul 26, 2016, 5:07:11 PM7/26/16
to cas-...@apereo.org
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


Imágenes integradas 1

this is one of my json 

{
  "@class" : "org.jasig.cas.services.RegexRegisteredService",
  "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",
  "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

Reply all
Reply to author
Forward
0 new messages