{"id":15628205,"url":"https://github.com/maprihoda/primal_auth","last_synced_at":"2025-04-28T21:00:03.800Z","repository":{"id":1857186,"uuid":"2782053","full_name":"maprihoda/primal_auth","owner":"maprihoda","description":"A Ruby on Rails example application with authentication built from scratch.","archived":false,"fork":false,"pushed_at":"2012-10-01T16:08:11.000Z","size":175,"stargazers_count":12,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-28T20:59:57.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"PHPOffice/PHPExcel","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maprihoda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-15T17:58:15.000Z","updated_at":"2018-03-11T11:50:23.000Z","dependencies_parsed_at":"2022-07-07T15:30:37.313Z","dependency_job_id":null,"html_url":"https://github.com/maprihoda/primal_auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maprihoda%2Fprimal_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maprihoda%2Fprimal_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maprihoda%2Fprimal_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maprihoda%2Fprimal_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maprihoda","download_url":"https://codeload.github.com/maprihoda/primal_auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251389339,"owners_count":21581779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T10:21:23.254Z","updated_at":"2025-04-28T21:00:03.778Z","avatar_url":"https://github.com/maprihoda.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# primal_auth\n\nA Ruby on Rails example application with authentication built from scratch.\n\n\n## Motivation\n\nFull-featured solutions like the Devise engine are often a good choice when authentication is needed. However, I prefer to implement authentication in a Rails app from scratch as I find it much easier to customize than a Rails engine.\n\n\n## Tell me more\n\nThe authentication needs covered are:\n\n* Signing up\n* Confirming sign-up by email\n* Logging in/out (with email and password)\n* Logging in/out with Omniauth\n* Remembering logged in user\n* Resetting password\n* Tracking users (like e.g. last login, last activity, etc.)\n\n\nThe application is inspired by Ryan Bates' excellent [railscasts on authentication](http://asciicasts.com/tags/authentication) and the [nifty_authentication generator](https://github.com/ryanb/nifty-generators/blob/master/rails_generators/nifty_authentication/USAGE). I made several modifications to the original code base, added other features (Confirmable, Trackable, Omniauthable), wired everything together into a fully functional Ruby on Rails application, and thoroughly tested everything (mainly unit and integration tests with RSpec and Capybara).\n\nIt also takes inspiration from [Devise](https://github.com/plataformatec/devise).\n\n\n## Installation\n\nJust git clone the application, cd to the root folder and run\n\n    bundle\n\nand then\n\n    rake db:migrate\n\n    rails server -b localhost\n\n\nThe app works ok on Ruby ~\u003e 1.9.2.\n\n\n## Tests\n\nRun the tests with\n\n    bundle exec rspec spec\n\n\n## TODO\n\n* Lockable\n* Timeoutable\n* Account deletion\n* Migrate to Postgres + add indexes\n\n\n## Contributing\n\nIn case of any problems with the app, please file an [issue](https://github.com/maprihoda/primal_auth/issues) here on Github.\n\nIf you want to contribute, please fork the project and send me a pull request (tested with RSpec).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaprihoda%2Fprimal_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaprihoda%2Fprimal_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaprihoda%2Fprimal_auth/lists"}