├── .gitignore ├── CHANGELOG ├── LICENSE ├── README.markdown ├── Rakefile ├── TODO ├── generators └── authenticated │ ├── USAGE │ ├── authenticated_generator.rb │ ├── lib │ └── insert_routes.rb │ └── templates │ ├── _model_partial.html.erb │ ├── activation.erb │ ├── authenticated_system.rb │ ├── authenticated_test_helper.rb │ ├── controller.rb │ ├── features │ ├── accounts.feature │ ├── sessions.feature │ └── step_definitions │ │ ├── ra_env.rb │ │ ├── ra_navigation_steps.rb │ │ ├── ra_resource_steps.rb │ │ ├── ra_response_steps.rb │ │ ├── rest_auth_features_helper.rb │ │ └── user_steps.rb │ ├── helper.rb │ ├── login.html.erb │ ├── mailer.rb │ ├── migration.rb │ ├── model.rb │ ├── model_controller.rb │ ├── model_helper.rb │ ├── model_helper_spec.rb │ ├── observer.rb │ ├── signup.html.erb │ ├── signup_notification.erb │ ├── site_keys.rb │ ├── spec │ ├── controllers │ │ ├── access_control_spec.rb │ │ ├── authenticated_system_spec.rb │ │ ├── sessions_controller_spec.rb │ │ └── users_controller_spec.rb │ ├── fixtures │ │ └── users.yml │ ├── helpers │ │ └── users_helper_spec.rb │ └── models │ │ └── user_spec.rb │ └── test │ ├── functional_test.rb │ ├── mailer_test.rb │ ├── model_functional_test.rb │ └── unit_test.rb ├── init.rb ├── lib ├── authentication.rb ├── authentication │ ├── by_cookie_token.rb │ └── by_password.rb ├── authorization.rb ├── authorization │ ├── aasm_roles.rb │ └── stateful_roles.rb ├── trustification.rb └── trustification │ └── email_validation.rb ├── notes ├── AccessControl.txt ├── Authentication.txt ├── Authorization.txt ├── RailsPlugins.txt ├── SecurityFramework.graffle ├── SecurityFramework.png ├── SecurityPatterns.txt ├── Tradeoffs.txt └── Trustification.txt ├── rails └── init.rb ├── restful-authentication.gemspec └── tasks └── auth.rake /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/CHANGELOG -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/LICENSE -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/README.markdown -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/TODO -------------------------------------------------------------------------------- /generators/authenticated/USAGE: -------------------------------------------------------------------------------- 1 | ./script/generate authenticated USERMODEL CONTROLLERNAME -------------------------------------------------------------------------------- /generators/authenticated/authenticated_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/authenticated_generator.rb -------------------------------------------------------------------------------- /generators/authenticated/lib/insert_routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/lib/insert_routes.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/_model_partial.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/_model_partial.html.erb -------------------------------------------------------------------------------- /generators/authenticated/templates/activation.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/activation.erb -------------------------------------------------------------------------------- /generators/authenticated/templates/authenticated_system.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/authenticated_system.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/authenticated_test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/authenticated_test_helper.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/controller.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/features/accounts.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/accounts.feature -------------------------------------------------------------------------------- /generators/authenticated/templates/features/sessions.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/sessions.feature -------------------------------------------------------------------------------- /generators/authenticated/templates/features/step_definitions/ra_env.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/step_definitions/ra_env.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/features/step_definitions/ra_navigation_steps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/step_definitions/ra_navigation_steps.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/features/step_definitions/ra_resource_steps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/step_definitions/ra_resource_steps.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/features/step_definitions/ra_response_steps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/step_definitions/ra_response_steps.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/features/step_definitions/rest_auth_features_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/step_definitions/rest_auth_features_helper.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/features/step_definitions/user_steps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/features/step_definitions/user_steps.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= controller_class_name %>Helper 2 | end -------------------------------------------------------------------------------- /generators/authenticated/templates/login.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/login.html.erb -------------------------------------------------------------------------------- /generators/authenticated/templates/mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/mailer.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/migration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/migration.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/model.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/model_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/model_controller.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/model_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/model_helper.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/model_helper_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/model_helper_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/observer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/observer.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/signup.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/signup.html.erb -------------------------------------------------------------------------------- /generators/authenticated/templates/signup_notification.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/signup_notification.erb -------------------------------------------------------------------------------- /generators/authenticated/templates/site_keys.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/site_keys.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/controllers/access_control_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/controllers/access_control_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/controllers/users_controller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/controllers/users_controller_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/fixtures/users.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/fixtures/users.yml -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/helpers/users_helper_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/helpers/users_helper_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/spec/models/user_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/spec/models/user_spec.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/test/functional_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/test/functional_test.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/test/mailer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/test/mailer_test.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/test/model_functional_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/test/model_functional_test.rb -------------------------------------------------------------------------------- /generators/authenticated/templates/test/unit_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/generators/authenticated/templates/test/unit_test.rb -------------------------------------------------------------------------------- /init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/init.rb -------------------------------------------------------------------------------- /lib/authentication.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/authentication.rb -------------------------------------------------------------------------------- /lib/authentication/by_cookie_token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/authentication/by_cookie_token.rb -------------------------------------------------------------------------------- /lib/authentication/by_password.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/authentication/by_password.rb -------------------------------------------------------------------------------- /lib/authorization.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/authorization.rb -------------------------------------------------------------------------------- /lib/authorization/aasm_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/authorization/aasm_roles.rb -------------------------------------------------------------------------------- /lib/authorization/stateful_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/authorization/stateful_roles.rb -------------------------------------------------------------------------------- /lib/trustification.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/trustification.rb -------------------------------------------------------------------------------- /lib/trustification/email_validation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/lib/trustification/email_validation.rb -------------------------------------------------------------------------------- /notes/AccessControl.txt: -------------------------------------------------------------------------------- 1 | 2 | See the notes in [[Authorization]] 3 | -------------------------------------------------------------------------------- /notes/Authentication.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/Authentication.txt -------------------------------------------------------------------------------- /notes/Authorization.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/Authorization.txt -------------------------------------------------------------------------------- /notes/RailsPlugins.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/RailsPlugins.txt -------------------------------------------------------------------------------- /notes/SecurityFramework.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/SecurityFramework.graffle -------------------------------------------------------------------------------- /notes/SecurityFramework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/SecurityFramework.png -------------------------------------------------------------------------------- /notes/SecurityPatterns.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/SecurityPatterns.txt -------------------------------------------------------------------------------- /notes/Tradeoffs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/Tradeoffs.txt -------------------------------------------------------------------------------- /notes/Trustification.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/notes/Trustification.txt -------------------------------------------------------------------------------- /rails/init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/rails/init.rb -------------------------------------------------------------------------------- /restful-authentication.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/restful-authentication.gemspec -------------------------------------------------------------------------------- /tasks/auth.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/technoweenie/restful-authentication/HEAD/tasks/auth.rake --------------------------------------------------------------------------------