RemoteStorage OAuth dialog

This commit is contained in:
2023-03-12 21:46:03 +01:00
parent 20c014607c
commit 7acc3b2106
7 changed files with 228 additions and 1 deletions

View File

@@ -54,6 +54,12 @@ Rails.application.routes.draw do
end
end
namespace :rs do
resource :oauth, only: [:new, :create], path_names: { new: ':useraddress' },
controller: 'oauth', constraints: { useraddress: /[^\/]+/}
get 'oauth/token/:id/launch_app' => 'oauth#launch_app', as: :launch_app
end
authenticate :user, ->(user) { user.is_admin? } do
mount Sidekiq::Web => '/sidekiq'
end