From 3a700a449a9cefd322d2d1f0a8fc4297fee3bb66 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Sep 2021 09:33:44 +0200 Subject: [PATCH] sources/oauth: don't try to load azure AD user ID as UUID Signed-off-by: Jens Langhammer --- authentik/sources/oauth/types/azure_ad.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/authentik/sources/oauth/types/azure_ad.py b/authentik/sources/oauth/types/azure_ad.py index 255c00724..cb0252454 100644 --- a/authentik/sources/oauth/types/azure_ad.py +++ b/authentik/sources/oauth/types/azure_ad.py @@ -1,6 +1,5 @@ """AzureAD OAuth2 Views""" from typing import Any, Optional -from uuid import UUID from requests.exceptions import RequestException from structlog.stdlib import get_logger @@ -49,12 +48,6 @@ class AzureADOAuthCallback(OAuthCallback): client_class = AzureADClient - def get_user_id(self, info: dict[str, Any]) -> Optional[str]: - try: - return str(UUID(info.get("id")).int) - except TypeError: - return None - def get_user_enroll_context( self, info: dict[str, Any],