Skip to content

Commit

Permalink
Allow OAuth 2 authorizations to redirect to anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed May 18, 2021
1 parent 5868be1 commit b96f386
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/controllers/oauth2_authorizations_controller.rb
Expand Up @@ -5,4 +5,10 @@ class Oauth2AuthorizationsController < Doorkeeper::AuthorizationsController
before_action :set_locale

authorize_resource :class => false

def new
override_content_security_policy_directives(:form_action => []) if Settings.csp_enforce || Settings.key?(:csp_report_url)

super
end
end

0 comments on commit b96f386

Please sign in to comment.