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],