Re: [openid4java] Federated login using OAuth2 in java

418 views
Skip to first unread message

Suresh Attanayake

unread,
Aug 23, 2012, 8:25:20 AM8/23/12
to openi...@googlegroups.com
Hi,

I think you have sent the mail to the wrong mailing list. OpenID4Java is not a library for OAuth 2.0 implementation. But anyways you better look into a project like Apache Amber.

Thanks,
-Suresh 

On Mon, Aug 20, 2012 at 2:35 PM, PMR <mastan...@gmail.com> wrote:
Hi All,

        I have a requirement like : I have to login in to my web appication using my gmail id, how  can i do it using OAuth 2 in java, So please he me in doing that using OAuth 2,

Thank You in advance.

Regards
PMR

--
You received this message because you are subscribed to the Google Groups "OpenID4Java" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openid4java/-/Br87EUgXNPIJ.
To post to this group, send email to openi...@googlegroups.com.
To unsubscribe from this group, send email to openid4java...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openid4java?hl=en.



--
Suresh Attanayake

Blog : http://sureshatt.blogspot.com/
LinkedIn : http://www.linkedin.com/pub/suresh-attanayake/16/165/181
Twitter : http://twitter.com/sureshatt

PMR

unread,
Aug 24, 2012, 2:33:42 AM8/24/12
to openi...@googlegroups.com
Hi Jleleu,

            Thank you very much for your response, Now my requirement has been changed that is i have to login into some web application using OpenID 2.0 using java can you please provide some sample code for that.

Awaiting for your response.

Regards
PMR

On Thursday, 23 August 2012 14:29:18 UTC+5:30, jleleu wrote:
Hi,

Openid4java is a library which supports OpenId protocol. Your question is about OAuth 2 protocol : you need some Java OAuth library to authenticate at Google from your web application : I would recommend using a library like Scribe : https://github.com/fernandezpablo85/scribe-java or my own library to also get the user profile built on top of Scribe : https://github.com/leleuj/scribe-up.
Best regards,
Jérôme

PMR

unread,
Aug 24, 2012, 2:36:37 AM8/24/12
to openi...@googlegroups.com
Hi SureshAtt,

          Thank you very much for your response, Now my requirement has been changed that is i have to login into some web application using OpenID 2.0 using java can you please provide some sample code for that.

Awaiting for your response.

Regards
PMR

Jérôme LELEU

unread,
Aug 24, 2012, 3:23:09 AM8/24/12
to openi...@googlegroups.com
Hi,

Using openid4java, you have these good tutorial : http://www.ibm.com/developerworks/java/library/j-openid/, but also sample on openid4java web site : http://code.google.com/p/openid4java/wiki/SampleConsumer.
Best regards,
Jérôme



2012/8/24 PMR <mastan...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "OpenID4Java" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openid4java/-/MLz_e6VF3yAJ.

Sutra Zhou

unread,
Aug 24, 2012, 3:47:53 AM8/24/12
to openi...@googlegroups.com, PMR
On 8/24/12 2:36 PM, PMR wrote:
Hi SureshAtt,

          Thank you very much for your response, Now my requirement has been changed that is i have to login into some web application using OpenID 2.0 using java can you please provide some sample code for that.


Suresh Attanayake

unread,
Aug 24, 2012, 11:48:55 AM8/24/12
to openi...@googlegroups.com
Hi,

You can find a sample over here with explanations. It is using OpenID4Java library. This is another sample.  

Thanks,
-Suresh

To view this discussion on the web visit https://groups.google.com/d/msg/openid4java/-/Zn_HkkPJwJsJ.

To post to this group, send email to openi...@googlegroups.com.
To unsubscribe from this group, send email to openid4java...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openid4java?hl=en.

PMR

unread,
Aug 29, 2012, 2:19:05 AM8/29/12
to openi...@googlegroups.com
Hi,

       Thank you very much for your help, It's working fine now, but i am getting very big query string while google is redirecting from gmail to my configured url(my application), In that query string emilid, firstname, lastname ...etc are displaying. Is there any mechanism to encrypt those in the querystring.

Thanks & Regards
PMR.

Pedro Lamarão

unread,
Aug 29, 2012, 9:18:39 AM8/29/12
to openi...@googlegroups.com
Em quarta-feira, 29 de agosto de 2012 03h19min05s UTC-3, PMR escreveu:
Hi,

       Thank you very much for your help, It's working fine now, but i am getting very big query string while google is redirecting from gmail to my configured url(my application), In that query string emilid, firstname, lastname ...etc are displaying. Is there any mechanism to encrypt those in the querystring.


Yes. This mechanism is called SSL or TLS.

--
 P. 
Reply all
Reply to author
Forward
0 new messages