rest - How set a url(callback) to listen a answer by javascript -


currently, consuming rest service has signature

http://service.ip/auth?clien=xx&redirect=urixx 

where urixxx shall

  http://localhost:8080/auth/callback 

i wonder if possible open "urixxx" in javascript in order received answer server? callback?

if scripts employs jsonp yes, otherwise declare httprequest , parse stuff out of return , inject contents head of document in wrapper function opens window indicated , writes needful scripts / content newly created window...

if mean trying tell request go location response suggest check out webserver class supports comet style interactions...

https://net7ntcip.codeplex.com/sourcecontrol/changeset/view/89621#1752948

after submit request can receive in response location addition token... can take token , send page indicated in response , have achieved wanted do..

i suppose same technique employed same thing without web server...


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -