Use omniauth
Use omniauth-github
Routes for github & omniauth
Merge branch 'master' of https://github.com/lighthouse-labs/laser_shark into github_auth
Merge branch 'master' into github_based_auth
Add uid/token fields to student model
Scope github auth to repos and gists
Sessions#create student from github OAuth
Moved presence validation to new student form
Redirects to github auth if not logged in
Redirects to setting up new student if needed
Helpers for logging in student
Setting up new student view/route/action
Specs for SessionsController & omniauth
Merge branch 'master' of https://github.com/lighthouse-labs/laser_shark into feature/1-github_based_auth
Merge branch 'master' of https://github.com/lighthouse-labs/laser_shark into feature/1-github_based_auth
Remove redundant code
Allow home spec to run logged in
Merge branch 'master' into feature/1-github_based_auth
Various changes:
* Renamed NewStudentForm to RegistrationForm
* Converted NewStudentForm (RegistrationForm) to use Reform gem (simpler, cleaner)
* Changed route from `resources :students` to `resource :registration` to be more symantically correct
* Fixed registration workflow by adding boolean column to `students` table
* Added additional fields to `students` table (`avatar_url`, `github_username`)
* When creating `Student` record initially, populate `email`, `first_name`, `last_name`
* Made registrations/new (formerly students/new) form page work by adding button
* Commented out `home_spec.rb` test b/c we need to mock out omniauth since even the homepage redirects to oauth
* Cleaned up tests accordingly