Please see
http://stackoverflow.com/questions/16288236/access-userservice-from-google-cloud-endpoint

Create a simple endpoints app and provide login with Google Acccounts
After the user logged in, then go to a page that use Javascript gapi to
make a authenticated endpoint call.
The User object on the server-side is null.



On Wed, Jun 8, 2016 at 9:57 PM, 'Nick (Cloud Platform Support)' via Google
App Engine <google-appengine@googlegroups.com> wrote:

> Hey Rajesh,
>
> Could you link some of those questions you've seen this on? I'm not sure
> I'm aware of any such limitation, and as far as I know, it's easiest to
> authenticate with Google Accounts, as opposed to other services, where
> you'd have to write (still not very complex) a bit of code for custom
> authentication.
>
> Also, feel free to share the code you've got right now, in the client and
> the endpoint, and maybe I can provide some recommendations.
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Wednesday, June 8, 2016 at 9:39:27 AM UTC-4, Rajesh Gupta wrote:
>>
>> I have seen some posts on the Stack Overflow that, Endpoints will not
>> work with Google Accounts Authentication. I have also tried and it does not
>> work.
>> This means, if you are using UserServiceFactory for authentication, and
>> then make endpoints call through a javascript client , then a User object
>> in the server-side is null.  You cannot recreate a valid User object.
>>
>>
>>
>> On Fri, Jun 3, 2016 at 4:02 AM, 'Nick (Cloud Platform Support)' via
>> Google App Engine <google-appengine@googlegroups.com> wrote:
>>
>>> Hey Raunak,
>>>
>>> The documentation on cloud.google.com is the best place to go, and
>>> Firebase is definitely not necessary. If you want to work with the default
>>> authentication options you can read the sections under "Calling Cloud
>>> Endpoints from Clients
>>> <https://cloud.google.com/appengine/docs/java/endpoints/calling-from-android>"
>>> (linking "Calling Endpoints from an Android App" but there's also iOS
>>> <https://cloud.google.com/appengine/docs/java/endpoints/calling-from-ios>
>>> and JavaScript
>>> <https://cloud.google.com/appengine/docs/java/endpoints/calling-from-javascript>
>>> client documentation). If you want to authenticate users through any other
>>> system on your client-side, you can pass their auth info along with the
>>> request and use a Custom Authenticator (see these two Stack Overflow
>>> questions: [1]
>>> <http://stackoverflow.com/questions/25365858/google-cloud-endpoints-and-users-authentication/25390994>
>>> , [2]
>>> <http://stackoverflow.com/questions/28445840/how-can-i-pass-custom-information-from-an-app-engine-authenticator-to-the-endpoi/33656908#33656908>)
>>> to rebuild a User object on the server-side.
>>>
>>> I hope these documentation and links are helpful. Feel free to return to
>>> ask any questions you still have after reading!
>>>
>>> Cheers,
>>>
>>> Nick
>>> Cloud Platform Community Support
>>>
>>> On Thursday, June 2, 2016 at 8:52:55 AM UTC-4, Raunak Gupta wrote:
>>>>
>>>> I'm new to App Engine and Google's offering for developers. Creating
>>>> endpoints so far have been fairly straight forward. Having said that, I'm
>>>> kind of lost how to authenticate users (using username/password), and
>>>> passing those details in Endpoints. Googling yields multiple results
>>>> suggesting I should use Google Identity Toolkit, and upon opening Toolkit
>>>> docs, it suggests I should use Firebase. Half of the times the docs aren't
>>>> inline with the development console which is only adding to the confusion.
>>>> Anyone experienced here can point me to recent JAVA based tutorial would be
>>>> greatly appreciated.
>>>>
>>> --
>>> 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/2014672a-d1ff-4b2d-a3e4-fc1b01852718%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/2014672a-d1ff-4b2d-a3e4-fc1b01852718%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Regards,
>> Rajesh
>> *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
>> *www.GainERP.com <https://www.gainerp.com>*
>> *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*
>>
>> --
> 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/64ff7544-5549-4e82-801f-5225636f5a94%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/64ff7544-5549-4e82-801f-5225636f5a94%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Rajesh
*www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
*www.GainERP.com <https://www.gainerp.com>*
*Accounting/Inventory/Orders on Google Cloud Platform and Mobile*

-- 
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/CA%2BS7ijYNcAvf5w4Zb0HXFYZ%2BEFHww2MXtYuxo6y0djfic_%2B9sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to