]> git.openstreetmap.org Git - rails.git/commit
Adding initial version of the OAuth token authentication method. This adds basic...
authorMatt Amos <zerebubuth@gmail.com>
Mon, 22 Jun 2009 16:54:37 +0000 (16:54 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Mon, 22 Jun 2009 16:54:37 +0000 (16:54 +0000)
commitb8f6dbd403507edd14f04f3151c285e232607360
tree5714f481efc2a44c84e8d03c6550d1b641fcceb3
parent2ad330d642df0048686f63dc7e86a7dbeb0b30e4
Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests.
85 files changed:
app/controllers/application_controller.rb
app/controllers/changeset_controller.rb
app/controllers/node_controller.rb
app/controllers/oauth_clients_controller.rb [new file with mode: 0644]
app/controllers/oauth_controller.rb [new file with mode: 0644]
app/controllers/relation_controller.rb
app/controllers/trace_controller.rb
app/controllers/user_controller.rb
app/controllers/user_preference_controller.rb
app/controllers/way_controller.rb
app/helpers/oauth_clients_helper.rb [new file with mode: 0644]
app/helpers/oauth_helper.rb [new file with mode: 0644]
app/models/access_token.rb [new file with mode: 0644]
app/models/client_application.rb [new file with mode: 0644]
app/models/oauth_nonce.rb [new file with mode: 0644]
app/models/oauth_token.rb [new file with mode: 0644]
app/models/request_token.rb [new file with mode: 0644]
app/models/user.rb
app/views/oauth/authorize.html.erb [new file with mode: 0644]
app/views/oauth/authorize_failure.html.erb [new file with mode: 0644]
app/views/oauth/authorize_success.html.erb [new file with mode: 0644]
app/views/oauth/oauthorize.html.erb [new file with mode: 0644]
app/views/oauth_clients/_form.html.erb [new file with mode: 0644]
app/views/oauth_clients/edit.html.erb [new file with mode: 0644]
app/views/oauth_clients/index.html.erb [new file with mode: 0644]
app/views/oauth_clients/new.html.erb [new file with mode: 0644]
app/views/oauth_clients/not_found.erb [new file with mode: 0644]
app/views/oauth_clients/show.html.erb [new file with mode: 0644]
app/views/user/account.html.erb
config/environment.rb
config/locales/en.yml
config/routes.rb
db/migrate/036_create_oauth_tables.rb [new file with mode: 0644]
db/migrate/037_add_fine_o_auth_permissions.rb [new file with mode: 0644]
test/fixtures/client_applications.yml [new file with mode: 0644]
test/integration/client_application_test.rb [new file with mode: 0644]
test/test_helper.rb
test/unit/client_application_test.rb [new file with mode: 0644]
test/unit/oauth_nonce_test.rb [new file with mode: 0644]
test/unit/oauth_token_test.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/.gitignore [new file with mode: 0644]
vendor/plugins/oauth-plugin/CHANGELOG [new file with mode: 0644]
vendor/plugins/oauth-plugin/MIT-LICENSE [new file with mode: 0644]
vendor/plugins/oauth-plugin/README.rdoc [new file with mode: 0644]
vendor/plugins/oauth-plugin/Rakefile [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/USAGE [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/oauth_provider_generator.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/_form.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/access_token.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize_failure.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize_success.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_application.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_application_spec.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_application_test.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_applications.yml [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_controller.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_controller_spec.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_controller_test.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_helper.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller_spec.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller_spec_helper.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller_test.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller_test_helper.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/edit.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/helper.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/index.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/migration.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/new.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonce.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonce_spec.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonce_test.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonces.yml [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_token.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_token_spec.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_token_test.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_tokens.yml [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/request_token.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/generators/oauth_provider/templates/show.html.erb [new file with mode: 0644]
vendor/plugins/oauth-plugin/init.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/install.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/lib/oauth/rails/controller_methods.rb [new file with mode: 0644]
vendor/plugins/oauth-plugin/tasks/oauth_tasks.rake [new file with mode: 0644]
vendor/plugins/oauth-plugin/uninstall.rb [new file with mode: 0644]