On 11/08/13 17:21, inteloid wrote:
Thanks Sergey.
from Daniel's suggestion I didn't find a way to get OAuth2 properties like
clientId, roles, etc. Do you know how to get them?
I guess you need to use
http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthContextUtils.java
It depends on the injected MessageContext.
Actually, you said it was not possible to inject it ? Given that you
mentioned a per-request (Spring) scope, may be this can help:
http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-FromSpring
Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/Statically-access-MessageContext-tp5732065p5732184.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com