Fetch web app metadata when creating RS auth
This commit is contained in:
parent
def87a1621
commit
8e090daa9c
@ -64,6 +64,7 @@ class RemoteStorageAuthorization < ApplicationRecord
|
||||
def find_or_create_web_app
|
||||
if looks_like_hosted_origin?
|
||||
web_app = AppCatalog::WebApp.find_or_create_by!(url: self.url)
|
||||
web_app.update_metadata unless web_app.name.present?
|
||||
self.web_app = web_app
|
||||
self.app_name = web_app.name.presence || client_id
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user