Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,10 @@ async def extract_auth_claims(
},
)
else:
cached_email = cached_claim.lower() if isinstance(cached_claim, str) else cached_claim
return AuthClaims(
id=cached_claim,
email=cached_claim,
id=cached_email,
email=cached_email,
source="slack_api",
raw_context={
"slack_user_id": slack_user_id,
Expand All @@ -389,6 +390,8 @@ async def extract_auth_claims(
user=slack_user_id
)
user_email = profile_response.get("profile", {}).get("email")
if user_email:
user_email = user_email.lower()

if user_email:
if self.context.cache_service and ttl > 0:
Expand Down