Skip to content

Instantly share code, notes, and snippets.

@drsii
Last active December 19, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drsii/5985341 to your computer and use it in GitHub Desktop.
Save drsii/5985341 to your computer and use it in GitHub Desktop.
The Ideal Sentry Social workflow.

// Basic process

  1. User registers with social network
  2. Sentry redirects to social network for approval
  3. Social network redirects back to sentry
  4. Sentry creates user account

//Issues

  1. creating a the use account.
  2. what if a user decides to create a sentry account with password
  3. what if the social network does not provide access to the users email address.
@huglester
Copy link

Problem I am having, is that if no email is provided by 3rd party, sentry will generate UID@facebook with some random password. even if email is provided, password is some randomly generated.

Now if user decides to create a password, how does he know his 'old' password? We need an option to know, if the password was SET or was AUTO-GENERATED.

Maybe the better would be to have email/password NULL ? or maybe there are draw bags with it?

I know that after initial registration we could just redirect to registration.. but in some scenarios we really don't want it :(

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment