What user is provided by App Engine's devserver when requesting the user from UserService, OAuthService or Cloud Endpoints Injection?
What user is provided by App Engine Devserver
435 views Asked by Aaron Roller At
2
There are 2 answers
0
Chandan Reddy
On
They return the user object corresponds to the currently logged in user.
I there is no user logged in, they will return null
You can redirect the user to login page by redirecting to url retured by UserService.createLoginUrl()
This works same in production and dev server. only difference is dev server doesn't validate the user credentials. It asks for email only, no passsword required.
Related Questions in GOOGLE-APP-ENGINE
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Jetty 12 idle timeout limited to 30 seconds when upgrading to Java 21 in Google App Engine Standard Environment
- Unable to deploy to GAE from Github Actions
- Migrating Google App Engine - Eclipse Java 8
- How to use Oauth in order to log‑in on .googleapis.com on almost any arbitrary endpoints domains from the web browser?
- Running gcloud app deploy and getting PERMISSION_DENIED 'compute.regions.get', despite having Owner and Compute admin permissions
- Spring security CORS configuration not working after deploying to App Engine
- Google App Engine: manual scaling with one instance suddenly created multiple instances
- gcloud.app.deploy Error Response: [13] Failed to create cloud build: invalid bucket
- gcloud.app.deploy Error Response: [13] default Cloud Build service account or user-specified service account does not have access to the bucket
- GCP Java dev_appserver Can't make API call memcache.Get in a thread that is neither the original request thread nor a thread created by ThreadManager
- How to correlate and aggregate logs in Google App Engine Python 3?
- App Engine Python3 db / ndb & eventual consistency
- How do I connect to Google Cloud mySQL from App Engine using Django-Environ?
- How to deploy my fast api with llama 2 on app engine
Related Questions in OAUTH-2.0
- discord.py - Oauth2 - join user to guild
- Implementing Incremental consent when using both application and delegated permissions
- Verifying Google Identity OAuth2 token with Ruby
- spring security error Caused by: org.attoparser.ParseException: Exception evaluating SpringEL expression: s
- Encountering HttpError 403 and 500 When Using Google Sheets API with Service Account
- get refresh token in axios interceptor
- spring error exception with oauth2 and securityconfig
- What oauth 2.0 endpoint is used to validate a bearer token
- Not enough permissions to access API request https://api.linkedin.com/v2/me
- How to specify the client ID and redirect URI in Swagger OAuth2.0 configuration for Swagger UI?
- OAuth2 PHP change invalid_token response
- Call Databricks API from an ASP.NET Core web application
- Secure to share Access Token over public API using CORs?
- How to use Oauth in order to log‑in on .googleapis.com on almost any arbitrary endpoints domains from the web browser?
- OAuth access token attribute based reverse proxying of http ressources
Related Questions in GOOGLE-OAUTH
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- Unable to call datastore using GCP service account key json
- Google Drive Service Account gets googleapiclient.errors.HttpError: 401 "Request is missing required authentication credential" when authenticating
- If you're using the Google Oauth2 authentication method to send emails with Gmail API from *your* account, when do you need to refresh the token?
- Verifying Google Identity OAuth2 token with Ruby
- I am trying to implement authentication in django using django_cas_ng, and also provide a option for all-auth for google login
- How to Sync Google Calendar Events Using Push Notifications?
- How to use Oauth in order to log‑in on .googleapis.com on almost any arbitrary endpoints domains from the web browser?
- Main tab doesn't retain authenticated state after authenticating user in popup window using Laravel Socialite
- ASP.NET Core Google external login issue
- I don't know how to change the language of my google sign in button
- Django Allauth Bad Request Error, Error Retrieving Access Token: Invalid Grant
- Getting Oauth2 token in Rust
- https://accounts.google.com/gsi/client missing 'Access-Control-Allow-Origin' header
- Using Google OAuth in .NET Core with AWS load balancer
Related Questions in GOOGLE-CLOUD-ENDPOINTS
- Endpoint URL to connect the Dialogflow CX agent to WhatsApp using Twilio
- How can I get high availability for an AlertManager that is behind Google Private Service Connect on GKE?
- How To Run GCP Cloud Endpoints Locally?
- How to authenticate with a Vertex AI endpoint in Postman without manual action?
- Does Google ESP V2 support validating JWT in cookies?
- My program endpoint key specified key does not exists this error
- connection to googles private apis endpoints (private service connect)
- Why is my Svelte web application using a previous version that I have deleted from App Engine?
- How can I use my App Engine API to run an executable on Compute Engine?
- Google Cloud Endpoints Optional Authentication for ESPv2 via YAML Upload
- Unsupported gRPC frame flag: 1 in response of Cloud Endpoints OpenAPI for Cloud Run with ESPv2
- Vertex AI endpoint logs not appearing on Logs Explorer
- VertexAI Endpoint - Unable to coerce value
- Failed startup of context c.g.a.r.j.AppEngineWebAppContext due to FeatureNotEnabledException: app_identity_service.GetAccessToken
- How to create an endpoint using the model trained by Vertex AI?
Related Questions in GAE-USERSERVICE
- how does get_current_user work
- Google UserService logoutUrl with Angular #
- Google App Engine - Multiple User sessions
- How to automatically log out from Google App Engine application after logging out of other Google serivices
- What user is provided by App Engine Devserver
- How does UserService class work?
- Custom User login in AppEngine
- Access GAE datastore from background thread
- How to capture email address in app engine?
- Can User Role from Google Apps be retrieved inside Google App Engine Application
- How to use OAuth2 / OpenID Connect with UserService?
- App Engine returns error when used with User Services
- AppEngine Cloud Endpoints and custom Users service
- GAE BlobStore : After Uploading a file successfully, google appengine throws null exception when calling user.getEmail()
- Multiple Auth Providers with AppEngine, Webapp2, and Cloud Endpoints Proto Datastore
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Deploy this Api class in an endpoints project:
Summary
Details
No authentication, no OAuth Authorization
API Explorer OAuth authorized (default credentials)
Devserver login via /_ah/login (default credentials)
Returning null from endpoints results in http status = 204. Null is the correct endpoints behavior per the docs.
OAuthService docs explain returning user zero is the expected behavior.
Two accounts returned:
These tests were run using appengine-maven-plugin:1.9.21:devserver
Conclusion
I answered my own question, but I will ask why does it need to be this confusing?