Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropwizard user registration (basic, social, OpenID, OAuth, Google+)

I am writing my first Dropwizard based application. It's a proof-of-concept for a somewhat skeptical boss at a well established php shop.

One thing I'm trying to do is to create what is simple using our existing framework:

  1. Allow users to create an account using their email+password, send a verification email and mark their account as active, then allowing them to log in using basic passwd authentication.

  2. Allow the same using google (which now I see is changing to google+)

  3. Allow the same using Facebook, but then also allow them to change the email address Facebook gives me.

I've found the openId integration example, and various other articles referring to versions that always seem out of date (or just don't seem to work) and three days in I'm getting ready to give up. I'm sure someone must have done this before and made it public. Please tell me so.

like image 734
Erwin Avatar asked Nov 02 '22 06:11

Erwin


1 Answers

Ken Yee has an example:

https://github.com/kenyee/dropwizard-oauth-openid

which is based off Gary Rowe's example but added Oauth support using SocialAuth. It may be a good start.

like image 71
yunspace Avatar answered Nov 15 '22 12:11

yunspace