• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webapp and OAuth. How it works: update client-side after server-side event

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Detail:
OAuth2
1) user click on a button (sign in with google+, for example), new popupWindow shows with (google+) auth form or permissions confirm form.
2) user click OK, then (google+) redirects on my webapp controller like (mysite.org/glogin). Popup window closes after that redirect (i can see redirect url to controller for a second) - HOW?! #1
3) controller takes parameters and gets user info from google.
4) (!) after success client side updates without reloading page, just some congratulations and functionality. HOW?! #2. I can send long request from client side to mysite.org/glogin or other controller to wait for a some event. But I know, that there is a wrong way.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic