[Resteasy-users] How to de-/activate a filter in JAX-RS 2.0?

2013-05-27 Thread Juergen Zimmermann
Is there e.g. a context parameter for web.xml so that filters can be
activated in a development environment and deactivated in a production
environment?

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] Duplicate client_id query parameter in redirect url to OAuth SSO server.

2013-05-27 Thread Bill Burke
Looks like a benign bug :)

On 5/25/2013 6:33 PM, Charles wrote:
 Hi,

 When the browser is redirected to the SSO server for authentication of
 my jax-rs api, the url contains a duplicate of the client_id query
 parameter as shown below:

 https://sso.foobar.com/login.jsp?client_id=chickenfooclient_id=chickenfooredirect_uri=https%3A%2F%2Fapi.foobar.com%2Fv1%2Fsearch%2Fphotos%2Fcamera%2Fcanonstate=0%2Fd3d25f58-505c-43ef-9300-83111ea19fd5login=true
 https://sso.pixsteric.com/login.jsp?client_id=pixstericclient_id=pixstericredirect_uri=https%3A%2F%2Fapi.pixsteric.com%2Fv1%2Fsearch%2Fphotos%2Fcamera%2Fcanonstate=0%2Fd3d25f58-505c-43ef-9300-83111ea19fd5login=true

 Is this a bug?


 --
 Try New Relic Now  We'll Send You this Cool Shirt
 New Relic is the only SaaS-based application performance monitoring service
 that delivers powerful full stack analytics. Optimize and monitor your
 browser, app,  servers with just a few lines of code. Try New Relic
 and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may



 ___
 Resteasy-users mailing list
 Resteasy-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/resteasy-users


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] ObjectMapper problems with Resteasy 3.0 beta5

2013-05-27 Thread Bill Burke
I have not tested Skeleton key with Wildfly nor the Jackson2 provider. 
I had some classloading issues when trying to use Jackson2 with AS7 and 
Resteasy so I never changed Skeleton key to use Jackson2.

Getting Skeleton key to work with Wildfly is on my todo list, but I'm 
currently working on passing the TCK.

On 5/25/2013 6:20 PM, Charles wrote:
 Hi,

 I am using Resteasy 3.0-beta5 Skeleton Key in my project. I have setup
 the whole thing...SSL certs, skeleton key config and so on. I am using
 the OAuthManagedResourceValve to secure a jax-rs API. After
 authentication from the sso server, I get the following exception.

 00:07:15,581 INFO  [org.jboss.as http://org.jboss.as] (Controller Boot
 Thread) JBAS015874: WildFly 8.0.0.Alpha1 WildFly started in 29220ms -
 Started 1153 of 1247 services (228 services are lazy, passive or on-demand)
 00:07:25,144 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) --- invoke: /login.jsp
 00:07:32,068 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) --- invoke: /j_security_check
 00:07:32,069 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) --- Begin oauthAuthenticate
 00:07:32,140 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) authenticate userSessionManage.login(): foobar
 00:07:32,259 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) --- sign access code
 00:07:32,289 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) --- build redirect
 00:07:32,290 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-1) --- end oauthAuthenticate
 00:07:33,183 INFO
   [org.jboss.resteasy.skeleton.key.as7.OAuthAuthenticationServerValve]
 (ajp-/192.168.1.101:8009-2) --- invoke: /j_oauth_resolve_access_code
 00:07:33,390 INFO
   [org.jboss.resteasy.skeleton.key.as7.ServletOAuthLogin]
 (ajp-/192.168.1.101:8009-1) media type: application/json
 00:07:33,390 INFO
   [org.jboss.resteasy.skeleton.key.as7.ServletOAuthLogin]
 (ajp-/192.168.1.101:8009-1) Content-Type header: application/json
 00:07:34,810 ERROR [org.apache.catalina.connector]
 (ajp-/192.168.1.101:8009-1) JBWEB001018: An exception or error occurred
 in the container during the request processing:
 org.jboss.resteasy.spi.ReaderException:
 com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
 Unrecognized field access_token (class
 org.jboss.resteasy.skeleton.key.representations.AccessTokenResponse),
 not marked as ignorable (4 known properties: , token, expiresIn,
 tokenType, refreshToken])
   at [Source:
 org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@934ef4;
 line: 1, column: 18] (through reference chain:
 org.jboss.resteasy.skeleton.key.representations.AccessTokenResponse[access_token])
 at
 org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:227)
 [resteasy-client-3.0-beta-5.jar:]
 at
 org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:135)
 [resteasy-client-3.0-beta-5.jar:]
 at
 org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:193)
 [resteasy-jaxrs-3.0-beta-5.jar:]
 at
 org.jboss.resteasy.skeleton.key.as7.ServletOAuthLogin.resolveCode(ServletOAuthLogin.java:283)
 [skeleton-key-as7-3.0-beta-5.jar:]
 at
 org.jboss.resteasy.skeleton.key.as7.OAuthManagedResourceValve.oauth(OAuthManagedResourceValve.java:272)
 [skeleton-key-as7-3.0-beta-5.jar:]
 at
 org.jboss.resteasy.skeleton.key.as7.OAuthManagedResourceValve.authenticate(OAuthManagedResourceValve.java:174)
 [skeleton-key-as7-3.0-beta-5.jar:]
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:447)
 [jbossweb-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.jboss.resteasy.skeleton.key.as7.OAuthManagedResourceValve.invoke(OAuthManagedResourceValve.java:137)
 [skeleton-key-as7-3.0-beta-5.jar:]
 at
 org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
 [wildfly-web-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
 [jbossweb-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
 [jbossweb-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559) 
 [jbossweb-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
 [jbossweb-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
 [jbossweb-8.0.0.Alpha1.jar:8.0.0.Alpha1]
 at
 org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:473)