config/routes.rb in vidibus-oauth2_server-0.0.3 vs config/routes.rb in vidibus-oauth2_server-0.0.4
- old
+ new
@@ -1,5 +1,6 @@
Rails.application.routes.draw do
get "/oauth/authorize" => "oauth2/authentication#authorize"
- post "/oauth/access_token" => "oauth2/authentication#access_token"
+ match "/oauth/access_token" => "oauth2/authentication#access_token", :via => [:get, :post]
+ match "/oauth/oauth_token" => "oauth2/authentication#access_token", :via => [:get, :post]
get "/oauth/user" => "oauth2/users#show"
end