Attributes in Rest Authentication 5.0.1

75 views
Skip to first unread message

Ivan Cordon

unread,
Feb 28, 2017, 8:01:22 AM2/28/17
to CAS Community
Hi

I'm trying to configure REST authentication in last release version. My rest service returns message as is describen in doc:

HTTP/1.1 200 OK
Server: Restlet-Framework/2.3.6
Breadcrumbid: ID-itesda01-59718-1488284985222-0-1
Date: Tue, 28 Feb 2017 12:29:48 GMT
Content-type: application/json
Content-length: 44

{"id":"ivan","attributes":{"appl":"000111"}}


If I don't fill any CAS attribute en "service acces Strategy", I can login with my example client service. Otherwise, if I mark appl as my attribute required, I can't get loging because attributes is empty:

2017-02-28 13:52:01,764 INFO [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authenticated principal [ivan] and attributes {} with credentials [ivan].>


Anybody know how my rest service has to return the credentials?

Thanks in advance.

Ivan Cordon

unread,
Mar 1, 2017, 8:29:06 AM3/1/17
to CAS Community
I think this bug is related with my issue:



I build CAS with overlay installation. How can I apply this patch?


Thanks

Dmitriy Kopylenko

unread,
Mar 1, 2017, 9:01:03 AM3/1/17
to cas-...@apereo.org
Use version 5.1.0-RC2 or 5.0.3.1 in your overlay.

Cheers,
D.
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/b61bbb2c-3784-471d-b95a-e706f7cafef0%40apereo.org.

Ivan Cordon

unread,
Mar 1, 2017, 12:03:11 PM3/1/17
to CAS Community, dkopy...@unicon.net
Great! with 5.0.3 it's running,

Is there some option in which if the value of property is not iqual to certain value, reject authentication?
Reply all
Reply to author
Forward
0 new messages