首页 \ 问答 \ 如何无缝验证用户是否使用与Google Apps帐户关联的服务?(How do I seamlessly authenticate users to use services associated with a Google Apps account?)

如何无缝验证用户是否使用与Google Apps帐户关联的服务?(How do I seamlessly authenticate users to use services associated with a Google Apps account?)

大家好我正在构建基于Google Apps的解决方案。 基本上我是这样设置的:

  1. 当Google Apps帐户持有人安装时,他/她会输入要使用的单个Googles Apps帐户的身份验证详细信息 - 该帐户将被已安装系统实例的所有用户用于上传到与该帐户关联的Google文档,管理与该Google Apps帐户相关联的Google日历条目。

  2. 所提到的用户可以创建其他用户并邀请他们从单独的登录屏幕登录,并且他们应该能够与系统的设施进行交互,这允许与用于安装系统的Google Apps帐户相关联的服务进行交互。

  3. 与原始用户相同域的任何其他用户也可以安装系统并自动与同一域的用户创建的实例相关联。

我得到了第一部分和第三部分,但第二部分是我被困住的地方 - 我在数据库中存储集中式Google Apps帐户的凭据,需要一种方法来使用详细信息无缝地进行身份验证,即我不知道我希望用户必须添加登录详细信息,也不必经过必须被允许应用程序访问Google Apps服务的权限的过程 - 我希望当用户登录时他们会自动透明地也已登录Google Apps帐户并能够使用其服务。

我该怎么做呢?我希望取消“询问用户登录哪个帐户或Google Apps登录屏幕”的过程,第二步是要求允许应用程序访问该帐户的权限。

我知道它可以完成 - 我已经安装了大量的应用程序,但没有一个要求我通过这个双管齐下的身份验证过程,我发现这是非常不必要的 - 我该怎么办? - 请帮助!


Hi guys I'm building a Google Apps based solution. Basically I'm setting it up such that:

  1. When a Google Apps account holder installs it he/she enters the authentication details for a single Googles Apps account to be used - that account would be used by all users of the instance of the installed system for uploading to Google Docs associated with that account and managing Google Calendar entries associated with that Google Apps account.

  2. The user as mentioned can create other users and invite them to sign in from a separate login screen and they should be able to interact with the system's facilities which allow interaction with the services associated with the Google Apps account used to install the system.

  3. Any other user of the same domain as the original user can also install the system and be automatically associated with the instance created by the user of the same domain.

I got parts one and three all set up but the second part is where I'm stuck - I'm storing the credentials for the centralised Google Apps account in a database and would need a way to authenticate seamlessly using the details i.e. I don't want the users to have to add in the sign in details nor have to go through the process of having to be asked for permission to allow the application to access the Google Apps services - I wish that when the users log in they are automatically transparently also signed into the Google Apps account as well and be able to use its services.

How can I do that I wish to do away with the process of 'asking the user for which account to sign in or the Google Apps login screen' and the second step asking for permission to allow the application access to the account.

I know it can be done - I've installed loads of applications and none of them require me to go through this two pronged process of authentication which I find quite unnecessary - what do I do? - Help please!


原文:https://stackoverflow.com/questions/2780097
更新时间:2023-08-25 07:08

最满意答案

我不知道你是否喜欢考虑这个。 但我曾经处于你的位置,而我发现的最好方式是将整个#mygalley的东西放在一个单独的页面中,并从stepcarousel的ajax功能中调用它们。 他们会很好看。 尝试一下

但话又说回来。 我认为在加载时很顺利地显示ajax加载器和淡入淡出的图像。 你可能会认为它的废话。


I don't know if you like to consider this. but I was once in your position and the neatest way i found for it was to put the whole #mygalley stuff in a separate page and call them from stepcarousel's ajax functionality. they will look nice. try it

but then again. I think smoothly showing ajax loader and fading images when loaded is neat. you might think its crap.

相关问答

更多