From 2c9b596f01b1e5d509da8f5f30245dbfcb71d95e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 3 Jul 2021 16:41:42 +0200 Subject: [PATCH] web/admin: run explicit update after loading instance Signed-off-by: Jens Langhammer --- authentik/sources/oauth/views/callback.py | 2 +- web/src/elements/forms/ModelForm.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/sources/oauth/views/callback.py b/authentik/sources/oauth/views/callback.py index c8d8fc37e..122f94804 100644 --- a/authentik/sources/oauth/views/callback.py +++ b/authentik/sources/oauth/views/callback.py @@ -51,7 +51,7 @@ class OAuthCallback(OAuthClientMixin, View): except JSONDecodeError as exc: Event.new( EventAction.CONFIGURATION_ERROR, - message=f"Failed to JSON-decode profile.", + message="Failed to JSON-decode profile.", raw_profile=exc.doc, ).from_http(self.request) return self.handle_login_failure("Could not retrieve profile.") diff --git a/web/src/elements/forms/ModelForm.ts b/web/src/elements/forms/ModelForm.ts index a93750d75..720904793 100644 --- a/web/src/elements/forms/ModelForm.ts +++ b/web/src/elements/forms/ModelForm.ts @@ -12,6 +12,7 @@ export abstract class ModelForm extends Form if (this.isInViewport) { this.loadInstance(value).then(instance => { this.instance = instance; + this.requestUpdate(); }); } }