python - Google oauth2 web-app vs javascript-app -
i'm using python rest apis
in backend , javascript
in frontend in application. so, google oauth
, can use either webapps or client side.
can please explain 1 better , why ? also, if using client-side, i'm concerned hardcoding app-id in javascript code.
it comes down personal choice , user experience want create.
personally, initial auth server app, subsequent hourly refreshes using pure javascript. reason doing found quicker way click loaded page including user information server database. if downloaded js, did oauth, , used id fetch user info server, took 3 times longer. server runs on appengine, suspect i'm exploiting shorter http path google's oauth servers.
but stress, comes down user experience , flow want achieve.
Comments
Post a Comment