Skip to content

Commit 9904d76

Browse files
committed
Remove redirect_uri from internal OAuth app
Commit 6e7c21c allows us to have a NULL `redirect_uri`. Previously, this value was merely a placeholder due to the NOT NULL constraint.
1 parent e315749 commit 9904d76

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/tasks/doorkeeper.rake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ namespace :doorkeeper do
88
) do |a|
99
a.scopes = 'read'
1010
a.confidential = true
11-
# redirect_uri value is only used as a placeholder here (required by Doorkeeper).
12-
# Tokens are minted server-side for already-authenticated first-party users.
13-
# No redirect, authorization code, or third-party client is involved.
14-
a.redirect_uri = "#{Rails.application.routes.url_helpers.root_url}oauth/callback"
1511
end
1612

1713
puts "Internal OAuth app ready (id=#{app.id}, uid=#{app.uid})"

0 commit comments

Comments
 (0)