Allow POST requests for user info endpoint

This commit is contained in:
theworldbright 2015-09-25 13:10:46 -07:00
parent 4be9f4d558
commit 21175e7eee
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ Rails.application.config.middleware.insert 0, Rack::Cors do
resource "/webfinger"
resource "/.well-known/webfinger"
resource "/.well-known/openid-configuration"
resource "/api/openid_connect/user_info", methods: :get
resource "/api/openid_connect/user_info", methods: %i(get post)
resource "/api/v0/*", methods: %i(get post delete)
end
end

View file

@ -250,7 +250,7 @@ Diaspora::Application.routes.draw do
post "authorizations/new", to: "authorizations#new"
get "user_applications", to: "user_applications#index"
get "jwks.json", to: "id_tokens#jwks"
get "user_info", to: "user_info#show"
match "user_info", to: "user_info#show", via: %i(get post)
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150801074555) do
ActiveRecord::Schema.define(version: 20150828132451) do
create_table "account_deletions", force: :cascade do |t|
t.string "diaspora_handle", limit: 255