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
|
def find_or_create_web_app
|
||||||
if looks_like_hosted_origin?
|
if looks_like_hosted_origin?
|
||||||
web_app = AppCatalog::WebApp.find_or_create_by!(url: self.url)
|
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.web_app = web_app
|
||||||
self.app_name = web_app.name.presence || client_id
|
self.app_name = web_app.name.presence || client_id
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user