Associate RS authorizations with web apps

This commit is contained in:
Râu Cao
2023-10-24 13:08:06 +02:00
parent 261a782963
commit fcea11f0e5
6 changed files with 36 additions and 11 deletions

View File

@@ -1,14 +1,6 @@
FactoryBot.define do
factory :app_catalog_web_app, class: 'AppCatalog::WebApp' do
factory :web_app, class: 'AppCatalog::WebApp' do
url { "https://myfavoritedrinks.remotestorage.io/" }
name { "My Favorite Drinks" }
short_name { "Drinks" }
description { nil }
theme_color { nil }
background_color { nil }
display { nil }
start_url { nil }
scope { nil }
share_target { nil }
end
end

View File

@@ -4,6 +4,7 @@ FactoryBot.define do
client_id { "some-fancy-app" }
redirect_uri { "https://example.com/some-fancy-app" }
app_name { "Fancy App" }
expire_at { nil }
expire_at { 1.month.from_now }
web_app
end
end