[英]How to implement openId java web based application?
In my web application i want to implement the OpenId just like stackoverflow.com have to login to its web-site. 在我的Web应用程序中,我想实现OpenId,就像stackoverflow.com必须登录到其网站一样。
In details you find while login to stackoverflow.com 您可以在登录stackoverflow.com时找到详细信息
So when if one choose google then it allow the uses to log in through google account. 因此,如果一个人选择谷歌,那么它允许用户通过谷歌帐户登录。
Please tell me how to implement it in java web application in details. 请详细告诉我如何在java web应用程序中实现它。 Is there any single api for login through different website like(yahoo,google,facebook,etc)
是否有任何单一的api登录通过不同的网站,如(雅虎,谷歌,脸书等)
Thanks 谢谢
There is two sides of this: 这有两个方面:
Not quite. 不完全的。 Most of the ones you have mentioned simply use the OpenID protocol, however Facebook uses its own authorisation, so you would need to add that as a separate method.
您提到的大多数只是使用OpenID协议,但Facebook使用自己的授权,因此您需要将其作为单独的方法添加。
Take a look at OpenID4Java 看看OpenID4Java
I have also used the openid-selector for the client side part. 我也使用openid-selector作为客户端部分。
Finally, I would take a look at the this resource to see the URL endpoints for the different providers. 最后,我将查看此资源以查看不同提供程序的URL端点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.