Hello Nicolaus, 

Authorized JavaScript origins in this case refer to the authorized redirect 
URIs to be called back as part of the 3-legged OAuth 2.0 flow. This flow is 
illustrated on the "Using OAuth 2.0 to Access Google APIs" documentation 
page <https://developers.google.com/identity/protocols/OAuth2#webserver>. 
JupyterHub uses OAuth login and needs to push a code to your application. 
This push action is performed by way of a call to a redirect URL with a 
code query parameter, in a form analogous to 
"http://yoursite/callback?code=[code to exchange]". The JavaScript origins 
should list the redirect URLs you want to use in the process. 

To clarify the setup, you may check the "Architectural Diagram" on the 
"Using TensorFlow and JupyterHub in Classrooms" page 
<https://cloud.google.com/solutions/using-tensorflow-jupyterhub-classrooms>. 
Two classroom machines are depicted there, as well as the Container Engine 
- Kubernetes Cluster group, that refers for authentication to the OAuth 
Login - Cloud IAM element. 

For a more clear tutorial, you can follow the explanations provided on the 
"Google API: set a JavaScript Origin to solve the redirect_uri_mismatch 
error" page 
<http://www.davismol.net/2016/02/01/google-api-set-a-javascript-origin-to-solve-the-redirect_uri_mismatch-error/>,
 
or other similar information sources, such as "Google OAuth 2: access data 
from a Google user in your application 
<https://www.themarketingtechnologist.co/google-oauth-2-enable-your-application-to-access-data-from-a-google-user/>
". 

Examples of authorized redirect URIs: 

http://localhost:4567
https://myproductionurl.example.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5e881565-4025-48c7-87f2-13ba2b15a29d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Nicolaus Schmandt
    • [google-appen... 'George (Cloud Platform Support)' via Google App Engine

Reply via email to