dify/api/tests
Krishna Chaitanya 7c0d2e1d98
fix: handle null email in GitHub OAuth sign-in (#34043)
When a GitHub user's profile email is null (hidden/private), the OAuth callback fails with HTTP 400 because `GitHubRawUserInfo` validates `email` as a required non-null string. Even after the type was relaxed to `NotRequired[str | None]` in #33882, the flow still raises a `ValueError` when no email can be resolved, blocking sign-in entirely.

This PR improves the email resolution strategy so that users with private GitHub emails can still sign in.
2026-03-26 00:41:18 +08:00
..
fixtures/workflow fix(api): defer streaming response until referenced variables are updated (#30832) 2026-01-12 16:23:18 +08:00
integration_tests refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +08:00
test_containers_integration_tests test: migrate plugin parameter service tests to testcontainers (#34090) 2026-03-25 23:11:14 +09:00
unit_tests fix: handle null email in GitHub OAuth sign-in (#34043) 2026-03-26 00:41:18 +08:00
__init__.py Initial commit 2023-05-15 08:51:32 +08:00
conftest.py refactor(workflow-file): move core.file to core.workflow.file (#32252) 2026-02-16 22:38:19 +08:00
workflow_test_utils.py refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +08:00