According to the flow after Address: http://localhost:8080/cxfjaxrsws/services/social/authorize?client_id=123456789&response_type=code&redirect_uri=http%3A//localhost%3A8080/cxfjaxrsws/services/friendAdd/friend/added&redirect_uri=http%3A//localhost%3A8080/cxfjaxrsws/services/friendAdd/friend/added&state=1&state=1 Http-Method: GET Content-Type: Headers: {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8], accept-encoding=[gzip, deflate, sdch], accept-language=[en-GB,en-US;q=0.8,en;q=0.6], Authorization=[Basic YmFycnlAc29jaWFsLmNvbToxMjM0], cache-control=[max-age=0], connection=[keep-alive], Content-Type=[null], cookie=[JSESSIONID=4F743B2A33D313F10DA57848EBA4A1D4], host=[localhost:8080], referer=[http://localhost:8080/cxfjaxrsws/reservation.jsp], upgrade-insecure-requests=[1], user-agent=[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36]} -------------------------------------- message is form view {org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, org.apache.cxf.resource.method=public javax.ws.rs.core.Response org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.authorize(), http.base.path=http://localhost:8080/cxfjaxrsws, HTTP.REQUEST=org.apache.catalina.connector.RequestFacade@6b6a4bad, org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@655b6102, HTTP.CONFIG=org.apache.catalina.core.StandardWrapperFacade@4a2a34bc, jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, org.apache.cxf.message.Message.QUERY_STRING=client_id=123456789&response_type=code&redirect_uri=http%3A//localhost%3A8080/cxfjaxrsws/services/friendAdd/friend/added&redirect_uri=http%3A//localhost%3A8080/cxfjaxrsws/services/friendAdd/friend/added&state=1&state=1, org.apache.cxf.jaxrs.model.OperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@26613217], HTTP.CONTEXT=org.apache.catalina.core.ApplicationContextFacade@4a3a8675, Content-Type=null, org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$2@6363a8bf, org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8], accept-encoding=[gzip, deflate, sdch], accept-language=[en-GB,en-US;q=0.8,en;q=0.6], Authorization=[Basic YmFycnlAc29jaWFsLmNvbToxMjM0], cache-control=[max-age=0], connection=[keep-alive], Content-Type=[null], cookie=[JSESSIONID=4F743B2A33D313F10DA57848EBA4A1D4], host=[localhost:8080], referer=[http://localhost:8080/cxfjaxrsws/reservation.jsp], upgrade-insecure-requests=[1], user-agent=[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36]}, org.apache.cxf.request.url=http://localhost:8080/cxfjaxrsws/services/social/authorize, Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8, org.apache.cxf.request.uri=/cxfjaxrsws/services/social/authorize, org.apache.cxf.message.Message.PATH_INFO=/cxfjaxrsws/services/social/authorize, org.apache.cxf.transport.https.CertConstraints=null, HTTP.RESPONSE=org.apache.catalina.connector.ResponseFacade@6f43f8a3, org.apache.cxf.request.method=GET, org.apache.cxf.async.post.response.dispatch=true, org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@38c45132], HTTP_CONTEXT_MATCH_STRATEGY=stem, http.service.redirection=null, org.apache.cxf.message.Message.BASE_PATH=/cxfjaxrsws/services/social, path_to_match_slash=/authorize, org.apache.cxf.configuration.security.AuthorizationPolicy=org.apache.cxf.configuration.security.AuthorizationPolicy@5d787d5, org.apache.cxf.interceptor.LoggingMessage.ID=5} Aug 12, 2016 1:35:52 PM org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService checkTransportSecurity WARNING: Unsecure HTTP, Transport Layer Security is recommended Aug 12, 2016 1:35:52 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging WARNING: Application {http://api/}SocialService has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: org.apache.cxf.common.util.StringUtils.toHexString([B)Ljava/lang/String;
it have to redirect to /forms/oauthAuthorize.jsp by setting an instance of "org.apache.cxf.rs.security.oauth2.common.OAuthAuthorizationData" but it is showing error. /*error is in previous post.*/ -- View this message in context: http://cxf.547215.n5.nabble.com/OAuth2-filter-using-CXF-tp5770940p5771410.html Sent from the cxf-user mailing list archive at Nabble.com.
