diff --git a/authentik/sources/oauth/clients/oauth2.py b/authentik/sources/oauth/clients/oauth2.py index 1022f3c598..176c9c1274 100644 --- a/authentik/sources/oauth/clients/oauth2.py +++ b/authentik/sources/oauth/clients/oauth2.py @@ -68,8 +68,6 @@ class OAuth2Client(BaseOAuthClient): error_desc = self.get_request_arg("error_description", None) return {"error": error_desc or error or _("No token received.")} args = { - "client_id": self.get_client_id(), - "client_secret": self.get_client_secret(), "redirect_uri": callback, "code": code, "grant_type": "authorization_code",