Skip to content

Commit f443c9a

Browse files
committed
Allow Doorkeeper HTTP redirects in test & dev
Allow HTTP OAuth redirects in test/dev for easier local development, while maintaining HTTPS enforcement in all other environments.
1 parent 6ee25e2 commit f443c9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/initializers/doorkeeper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@
5656
use_refresh_token expiry: 90.days
5757

5858
# enable ssl requirement for redirect url
59-
force_ssl_in_redirect_uri true
59+
# - Allow HTTP in test and development environments
60+
force_ssl_in_redirect_uri !(Rails.env.test? || Rails.env.development?)
6061
end

0 commit comments

Comments
 (0)