简体   繁体   English

谷歌云端点和谷歌身份工具包

[英]Google cloud endpoints and Google Identity Toolkit

On the client side I have Android users I wish to authenticate using Google Identity Toolkit.在客户端,我希望使用 Google Identity Toolkit 对 Android 用户进行身份验证。 I'll mainly be using email/password authentication but i'm also looking into federated logins.我将主要使用电子邮件/密码身份验证,但我也在研究联合登录。 I'm just not sure how to use the Identity Toolkit on Google cloud endpoints.我只是不确定如何在 Google 云端点上使用身份工具包。 So far the only thing i know for sure is i can't use get_current_user() method to validate a user.到目前为止,我唯一确定的是我不能使用 get_current_user() 方法来验证用户。

I came across this user authentication API explorer demonstration on google's website which uses identity toolkit.我在使用身份工具包的谷歌网站上看到了这个用户身份验证 API 资源管理器演示。 This is what I want to do, but i don't know how to do it.这就是我想做的,但我不知道该怎么做。 I couldn't find a proper documentation that shows how to authenticate users on Cloud Endpoints using Google Identity Toolkit API.我找不到合适的文档来说明如何使用 Google Identity Toolkit API 在 Cloud Endpoints 上对用户进行身份验证。

A step by step guide would be great!一步一步的指南会很棒!

We could do it with this data:我们可以用这些数据来做:

    authorizationUrl: ''
    flow: implicit
    type: oauth2
    x-google-audiences: [PROJECT_ID]
    x-google-issuer: https://identitytoolkit.google.com/
    x-google-jwks_uri: https://www.googleapis.com/identitytoolkit/v3/relyingparty/publicKeys

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM