我如何在我的GWT应用程序中使用OAuth? [英] How do I use OAuth within my GWT application?

查看:169
本文介绍了我如何在我的GWT应用程序中使用OAuth?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的Java GWT应用程序中使用OAuth?
特别是,我想使用此API获取Google Aps域中的用户列表:

http://code.google.com/googleapps/domain/profiles/developers_guide_protocol.html



我知道这听起来像是一个问题,可能以前曾被问过很多次,但是我无法找到任何Java代码来了解如何实现上述API中描述的OAuth步骤。 p>

如果有人可以分享一些代码,或者将我指向正确的文档,我会很高兴。

解决方案

你在你的GWT应用程序中意味着什么?
您的意思是客户端吗?


因为在服务器上您可以轻松使用抄写员 OAuth库。



它有一个很好的文档,使用起来相当简单。


How do I use OAuth within my Java GWT application? In particular, I want to get a list of users in my Google Aps domain, using this API:

http://code.google.com/googleapps/domain/profiles/developers_guide_protocol.html

I know this sounds like a question, that probably has been asked many times before, but I couldn't find any Java code on how to realize the OAuth steps described in the API above.

I would be glad if someone could share some code, or point me to the right docs.

解决方案

What do you mean in your GWT application? Do you mean client-side only?

Because on the server you can easily use the Scribe OAuth library.

It has a good documentation and is fairly simple to use.

这篇关于我如何在我的GWT应用程序中使用OAuth?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆