rsierra/onLeague — Issue #6: Merge devise authentication with oauth providers
Author: rsierra
Created: 2012-02-19 11:00:29+00:00
State: open

Authentication options:

* No session and no user:
* Application user registration => Create user.
* External authentication => Craete user and set provider.
* No session and user:
* Application sign in => Create session.
* External authentication => Create session and set provider if doesn't exist
**NOTE**: If you have an user and no session, and you have a different email in your external provider, you will create a new application user.
* With session (and obviously user :tongue:):
* External authentication => Set provider if doesn't exist.