Closed ychaker closed 14 years ago
Hey, i've started a Rails3 application and i'm hoping to turn it into an OAuth provider application.
I have the following specified in my Gemfile:
gem 'oauth' gem 'oauth-plugin', :git => 'git://github.com/pelle/oauth-plugin.git', :branch => 'rails3'
and i ran 'bundle install' and got the following gems installed:
Using oauth (0.4.1) Using oauth-plugin (0.3.14) from git://github.com/pelle/oauth-plugin.git (at rails3)
I then ran the generator command 'rails g oauth_provider' and got a bunch of generated files:
create app/models/client_application.rb create app/models/oauth_token.rb create app/models/request_token.rb create app/models/access_token.rb create app/models/oauth2_token.rb create app/models/oauth2_verifier.rb create app/models/oauth_nonce.rb create app/controllers/oauth_controller.rb create app/controllers/oauth_clients_controller.rb route match '/oauth', :to => 'oauth#index', :as => :oauth route match '/oauth/authorize', :to => 'oauth#authorize', :as => :authorize route match '/oauth/request_token', :to => 'oauth#request_token', :as => :request_token route match '/oauth/access_token', :to => 'oauth#access_token', :as => :access_token route match '/oauth/token', :to => 'oauth#token', :as => :token route match '/oauth/test_request', :to => 'oauth#test_request', :as => :test_request route resources :oauth_clients create spec/models/client_application_spec.rb create spec/models/oauth_token_spec.rb create spec/models/oauth2_token_spec.rb create spec/models/oauth2_verifier_spec.rb create spec/models/oauth_nonce_spec.rb create spec/fixtures/client_applications.yml create spec/fixtures/oauth_tokens.yml create spec/fixtures/oauth_nonces.yml create spec/controllers/oauth_controller_spec_helper.rb create spec/controllers/oauth_controller_spec.rb create spec/controllers/oauth_clients_controller_spec.rb create app/views/oauth_clients/_form.html.erb create app/views/oauth_clients/new.html.erb create app/views/oauth_clients/index.html.erb create app/views/oauth_clients/show.html.erb create app/views/oauth_clients/edit.html.erb create app/views/oauth/authorize.html.erb
and at the end i got 'Could not find "oauth2_webserver_authorize.html.erb" in any of your source paths.'
any ideas?
fixed in recent commit
Hey, i've started a Rails3 application and i'm hoping to turn it into an OAuth provider application.
I have the following specified in my Gemfile:
gem 'oauth' gem 'oauth-plugin', :git => 'git://github.com/pelle/oauth-plugin.git', :branch => 'rails3'
and i ran 'bundle install' and got the following gems installed:
Using oauth (0.4.1) Using oauth-plugin (0.3.14) from git://github.com/pelle/oauth-plugin.git (at rails3)
I then ran the generator command 'rails g oauth_provider' and got a bunch of generated files:
and at the end i got 'Could not find "oauth2_webserver_authorize.html.erb" in any of your source paths.'
any ideas?