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
431 Views Asked by Aaron Roller At
2
There are 2 best solutions below
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
- AngularJS, Google App Engine and URLrewrite
- Optimizing for Social Leaderboards
- Getting entity with a join table GAE
- Custom exception message from google endpoints exception
- Unable to deploy an application module on AppEngine
- How to use CachedRowSet in Google App Engine?
- How can I create a docker image from the current system?
- Google datastore multiple values for the same property
- Google Cloud Storage sort directory by name
- Adding custom domain for Google App Engine WordPress site
- Arguments to Endpoints method change order
- Could someone bring Google OAuth2 for Cloud DNS via Rest to light?
- DNS_PROBE_FINISHED_NXDOMAIN on Google App Engine website
- GAE python - client_secrets.json 'File not found' - app.yaml error?
- Images not working in Google App Engine email
Related Questions in OAUTH-2.0
- Not getting refresh token with google oauth2
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- How can I share Azure Active Directory authentication between server side and client script?
- OAuth2 and API Json request not working with jQuery Call
- Flask-Restful, oauth, and Salesforce
- Bearer token in MVC controller to access Web API
- Revoking OAuth tokens in Mule
- how to signup user using google-plus integradation in web?
- Need to run getAuthToken twice before receiving access token, why?
- chrome.identity.getAuthToken and refresh token?
- dropbox api authentication (Error: [400] 'invalid_client')
- Retrieve Google Sites's Domain Index feed using OAuth 2.0 with Service Account
- hello.js: Is it possible to set the provider's settings dynamically?
- How to share developer account at LinkedIn
- Linkedin Unsupported POST target
Related Questions in GOOGLE-OAUTH
- Not getting refresh token with google oauth2
- getting google contacts using shuttlecloud
- How to use Authentication again after it was granted prevously
- Youtube API - Listing hidden videos of my channel using OAuth
- How can I make a copy of a file in Google Drive via Python?
- Error "Invalid token: Cannot parse referred token string" when trying to access to Picasaweb API with oAuth2 from Java
- Need to run getAuthToken twice before receiving access token, why?
- Retrieve Google Sites's Domain Index feed using OAuth 2.0 with Service Account
- On App Engine using Go, correct method for using OAuth2
- Google App Engine Python - YouTube API v3 - Insufficient Permission
- How to set redirect URI with pattern for OAuth 2 with Google?
- Not able to extract access token google service account
- What Google Account is associated with an OAuth Client ID?
- Accessing Google api with multi user
- Unauthorized Client Exception with Google Drive Service Account
Related Questions in GOOGLE-CLOUD-ENDPOINTS
- How to handle RabbitMQ with mobile apps
- Custom exception message from google endpoints exception
- How to use CachedRowSet in Google App Engine?
- Cloud Endpoints - ImportError: No module named endpoints
- Arguments to Endpoints method change order
- Using Document Discovery service on a non-app engine service
- Is it possible to use Google Cloud Endpoints built in authentication with Google+ Domains API?
- IntegerField() is converted to string in JSON for any number
- How to pass list of strings as parameter with Google Cloud Endpoints
- Can you set up a simple log on system with google endpoints
- Google Cloud Endpoints: verifyToken: Signature length not correct
- IllegalArgumentException: expected primitive class, but got: class UUID
- Upload a file via google cloud Endpoints to google cloud Storage via Android Client
- Cloud Endpoints with Cloud SQL sample code
- Guice Injection into Google Cloud Endpoints Transformer
Related Questions in GAE-USERSERVICE
- UserService in GWT
- 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
- AppEngine Cloud Endpoints and custom Users service
- App Engine returns error when used with User Services
- 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?
- How to use OAuth2 / OpenID Connect with UserService?
- Can User Role from Google Apps be retrieved inside Google App Engine Application
- Access GAE datastore from background thread
- how does get_current_user work
- How to capture email address in app engine?
- Custom User login in AppEngine
- Google App Engine - Multiple User sessions
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)
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?
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?