I am thinking if its possible to user a GWT RPC Servlet (like MyServiceImpl) as callback URL for oauth? The oauth provider will call the callback URL and then pass URL parameters to that callback, is it possible that capture those URL parameter in the RPC servlet?
Share
It is possible to do something like this.
RemoteServletis just another normal servlet, you can override itsdoPost()anddoGet()methods. You will just need to filter incoming requests, if it is an Oauth callback handle it, if it is GWT-RPC request (you can find this out by checking for specific GWT HTTP headers), just delegate it to the super class.But in reality it is better to keep those two things separated. There can’t be a real reason why one servlet should be handling Oauth callbacks and GWT-RPC requests.