Support multiple redirect_uris when creating OAuth 2.0 Applications (#29192)
This commit is contained in:
@@ -5,7 +5,7 @@ class Api::V1::AppsController < Api::BaseController
|
||||
|
||||
def create
|
||||
@app = Doorkeeper::Application.create!(application_options)
|
||||
render json: @app, serializer: REST::ApplicationSerializer
|
||||
render json: @app, serializer: REST::CredentialApplicationSerializer
|
||||
end
|
||||
|
||||
private
|
||||
@@ -24,6 +24,6 @@ class Api::V1::AppsController < Api::BaseController
|
||||
end
|
||||
|
||||
def app_params
|
||||
params.permit(:client_name, :redirect_uris, :scopes, :website)
|
||||
params.permit(:client_name, :scopes, :website, :redirect_uris, redirect_uris: [])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user