From 04aae8f58471139da03427ac551c9bc5b878660a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 9 May 2021 21:40:22 +0200 Subject: [PATCH] sources/oauth: make secret write_only Signed-off-by: Jens Langhammer --- authentik/sources/oauth/api/source.py | 1 + 1 file changed, 1 insertion(+) diff --git a/authentik/sources/oauth/api/source.py b/authentik/sources/oauth/api/source.py index 13db82c1e..b2813af1f 100644 --- a/authentik/sources/oauth/api/source.py +++ b/authentik/sources/oauth/api/source.py @@ -75,6 +75,7 @@ class OAuthSourceSerializer(SourceSerializer): "callback_url", "type", ] + extra_kwargs = {"consumer_secret": {"write_only": True}} class OAuthSourceViewSet(ModelViewSet):