javascript - [JS]Return to index page -


how can return registration page oauth authentication? put url of app(as &redirect_uri=) when user accept authentication, script fails:

error: access 'app://6cb90889-d3dd-4ca7-8bab-ea11831b922d/reg.html#access_token=xxxxxxxxxxx' script denied 

it should close browser , return app! idea?

redirection of url taken care server. server has understand redirect_uri= attribute , need redirect it.

in case of j2ee. done as

public void doget(httpservletrequest request, httpservletresponse response)       throws servletexception, java.io.ioexception {         string contextpath= "http://www.java2s.com";     response.sendredirect(response.encoderedirecturl(contextpath + "/maps"));   } 

let me know if trying someting different.

regards, chandra.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -