Skip to content

Commit

Permalink
revert superapp/client auto-approval changes
Browse files Browse the repository at this point in the history
  • Loading branch information
toufali committed Feb 28, 2024
1 parent 4d68c43 commit 762e19a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions config/initializers/doorkeeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@
# Under some circumstances you might want to have applications auto-approved,
# so that the user skips the authorization step.
# For example if dealing with a trusted application.
redirect_uri_whitelist = ENV['REDIRECT_URI_WHITELIST']&.split('|').freeze

skip_authorization do |resource_owner, client|
client.application.superapp? || redirect_uri_whitelist&.include?(client.application.redirect_uri)
client.application.superapp?
end

# WWW-Authenticate Realm (default "Doorkeeper").
Expand Down

0 comments on commit 762e19a

Please sign in to comment.