How do I implement an OpenID consumer in my Google App Engine project?

后端 未结 4 1293
囚心锁ツ
囚心锁ツ 2021-02-07 07:51

I want to use OpenID in my Java Google App Engine web application but I don\'t know where to start...

I have looked at openid4java and joid.

openid4java<

相关标签:
4条回答
  • 2021-02-07 08:04

    It should be pretty easy to translate http://appengine-cookbook.appspot.com/recipe/accept-google-aol-yahoo-myspace-facebook-and-openid-logins/ (which provides a Python app engine way to do it) into app engine Java, if going through rpxnow.com is OK with you. If parsing json is a problem you can also request xml results from rpxnow.com. See https://rpxnow.com/docs for more about the RPX API.

    0 讨论(0)
  • 2021-02-07 08:04

    For the openidjava libraries you would just include this in your project. If you are using Eclipse (it has a great plug-in for GWT and App Engine). Stick the openidjava files in your src directory or the jar in the WEB-INF/lib directory and make sure you add it to your classpath.

    0 讨论(0)
  • 2021-02-07 08:06

    http://code.google.com/p/dyuproject/

    0 讨论(0)
  • 2021-02-07 08:16

    Well, I know this is an old question, but I'm trying now to get openid4java running on App Engine and it is not working. It seems that it uses an "HTTPClient" library that wants to start a new thread and App Engine throws an exception because of that.

    So, if you plan to use openid4java on App Engine, look before if there is a solution to this. I just can't find one :(

    You can see the problem in more detail here and here.

    Hope it helps!

    0 讨论(0)
提交回复
热议问题