Negative "evaluationOrder" for registered services

12 views
Skip to first unread message

Yauheni Sidarenka

unread,
Aug 8, 2019, 11:05:28 AM8/8/19
to CAS Community
Hello all,

I have a question about "evaluationOrder" property of a registered service:https://apereo.github.io/cas/6.0.x/services/Service-Management.html#registered-services

Official documentation does not put any restriction on this field, but from CAS code (and one of topics here) I know that it should be in Java's Integer.MIN_VALUE..Integer.MAX_VALUE range (signed 32 bit integer).

Is it allowed to have negative value like in service configuration below?
{
  "@class": "org.apereo.cas.services.RegexRegisteredService",
  "serviceId": "^(https|imaps)://.*",
  "name": "HTTPS and IMAPS",
  "id": 10000001,
  "description": "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.",
  "evaluationOrder": -1
}

Is there any warning regarding negative evaluation order?

Thank you in advance!

Misagh Moayyed

unread,
Aug 8, 2019, 11:37:33 AM8/8/19
to CAS Community


On Aug 8, 2019, at 7:35 PM, Yauheni Sidarenka <yauheni_...@pubget.com> wrote:

Hello all,

I have a question about "evaluationOrder" property of a registered service:https://apereo.github.io/cas/6.0.x/services/Service-Management.html#registered-services

Official documentation does not put any restriction on this field, but from CAS code (and one of topics here) I know that it should be in Java's Integer.MIN_VALUE..Integer.MAX_VALUE range (signed 32 bit integer).

Is it allowed to have negative value like in service configuration below?

Yes negative values are allowed.

Yauheni Sidarenka

unread,
Aug 8, 2019, 11:45:12 AM8/8/19
to CAS Community
Thank you very much for prompt reply!
Reply all
Reply to author
Forward
0 new messages