flow of oauth open new window
1. example.com/index.html open a new window which domain is flickr oauth page
2. after user authenticate, flickr will redirect to the callback url (example.com/auth.htm)
3. in example.com/auth.htm, there's a javascript file calling the function defined in example.com/index.html
3.1 window.opener.processAuth(...)
3.2 pass the auth credential,
3.3 window.close to close itself
4. in example.com/index.html, the processAuth handle the the rest
沒有留言:
張貼留言