oauth 2.0 - Oauth2 in Restlet with a JAXRS Application? -
i trying create rest service (in jax-rs) restlet protected oauth2. our rest service has been written jax-rs , after investigation oauth2 implementation of restlet seems best.
anyone knows how use oauth2 restlet jax-rs service (also in restlet if possible)?
i have tried:
jaxrsapplication.setauthenticator(new authenticator() { public boolean authenticate(request request, response response) { oauthauthorizer auth = new oauthauthorizer("http://localhost:9090/oauth/validate"); return auth.authorize(request, response); } });
but doesn't seem work.
Comments
Post a Comment