api - OAuth 2.0 for distributable web applications -


i'm trying figure out, how use oauth 2.0 access google apis web app. problem is, protocol require developer register redirect_uri (url of page receiving access token). application can distributed many customers , can hosted on endless number of servers. there no way know redirect_uri beforehand.

google offers option installed applications, cannot use variant neither. auth server returns access code in window title , information cannot accessed javascript of our page (js cannot access content of window opened using window.open(); if content comes different server).

to conclude:

  1. cannot use method web applications, because don't know urls our app run in future.
  2. cannot use method installed applications, because window title not accessible our javascript code.

is there recommendation, how use google's oauth 2.0 distributable web application running on lots of servers? thank you.

are sure cannot access window title? if app opening window, should able access it. should possible in similar way in mobile app.

if attempts fail, set proxy server (that has known redirect uri) , hands out google tokens clients. or better each of apps have own proxy server - server downloaded from. if each oauth client can have 1 redirect uri, each app have separate oauth client.


Comments

Popular posts from this blog

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

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

java - Need to add SOAP security token -