简体   繁体   English

如何将OAuth2 / OpenID Connect与UserService一起使用?

[英]How to use OAuth2 / OpenID Connect with UserService?

I'm running several apps on Google App Engine. 我正在Google App Engine上运行多个应用程序。 I am using the UserService for Authentication to be able to send emails on behalf of the user etc. and OAuth2 for API authorization. 我正在使用UserService进行身份验证,以便能够代表用户等发送电子邮件,并使用OAuth2进行API授权。

I am now trying to publish the apps on the Google Apps Marketplace, but I received an email telling me it is required to use OAuth2 for authentication. 我现在正在尝试在Google Apps Marketplace上发布应用程序,但是我收到一封电子邮件,告诉我必须使用OAuth2进行身份验证。

As I am just using the supported Google stack I assume there is a way to meet the requirements for publishing my apps on the Google Apps Marketplace but right now I'm stuck. 由于我只是在使用受支持的Google堆栈,因此我认为有一种方法可以满足在Google Apps Marketplace上发布我的应用程序的要求,但现在我陷入了困境。

This is similar to another question . 这类似于另一个问题 The challenge is that the User service is using still using OpenID. 挑战在于用户服务仍在使用OpenID。 You'll need to use a Client library to authenticate the user. 您需要使用客户端库对用户进行身份验证。

Here are good samples in Python & Java . 这是PythonJava中的好示例。

Currently we use Openid 2.0 for user authentication and Oauth for authorization of other services. 当前,我们使用Openid 2.0进行用户身份验证,并使用Oauth进行其他服务的授权。 Openid 2.0 is deprecated and Google will not provide authentication using Open Id. 不建议使用Openid 2.0,并且Google不会使用Open ID提供身份验证。 For time line refer this link https://developers.google.com/+/api/auth-migration#timetable 有关时间轴,请参阅此链接https://developers.google.com/+/api/auth-migration#timetable

So they are suggesting to use OpenidConnect for authentication of user. 因此,他们建议使用OpenidConnect进行用户身份验证。 OpenIdConnect is a layer written over Oauth 2.0 for authentication of user. OpenIdConnect是在Oauth 2.0之上编写的用于用户身份验证的层。

For references visit http://openid.net/connect/ and https://developers.google.com/accounts/docs/OAuth2Login?hl=ja#appsetup 有关参考,请访问http://openid.net/connect/https://developers.google.com/accounts/docs/OAuth2Login?hl=ja#appsetup

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

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