mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
auth: Add Sign in with Apple support.
This implementation overrides some of PSA's internal backend functions to handle `state` value with redis as the standard way doesn't work because of apple sending required details in the form of POST request. Includes a mixin test class that'll be useful for testing Native auth flow. Thanks to Mateusz Mandera for the idea of using redis and other important work on this. Documentation rewritten by tabbott. Co-authored-by: Mateusz Mandera <mateusz.mandera@zulip.com>
This commit is contained in:
@@ -173,6 +173,15 @@ SOCIAL_AUTH_GITLAB_SECRET = "secret"
|
||||
SOCIAL_AUTH_GOOGLE_KEY = "key"
|
||||
SOCIAL_AUTH_GOOGLE_SECRET = "secret"
|
||||
SOCIAL_AUTH_SUBDOMAIN = 'auth'
|
||||
SOCIAL_AUTH_APPLE_SERVICES_ID = 'com.zulip.chat'
|
||||
SOCIAL_AUTH_APPLE_BUNDLE_ID = 'com.zulip.bundle.id'
|
||||
SOCIAL_AUTH_APPLE_CLIENT = 'com.zulip.chat'
|
||||
SOCIAL_AUTH_APPLE_KEY = 'KEYISKEY'
|
||||
SOCIAL_AUTH_APPLE_TEAM = 'TEAMSTRING'
|
||||
SOCIAL_AUTH_APPLE_SECRET = get_from_file_if_exists("zerver/tests/fixtures/apple/private_key.pem")
|
||||
|
||||
APPLE_JWK = get_from_file_if_exists("zerver/tests/fixtures/apple/jwk")
|
||||
APPLE_ID_TOKEN_GENERATION_KEY = get_from_file_if_exists("zerver/tests/fixtures/apple/token_gen_private_key")
|
||||
|
||||
VIDEO_ZOOM_CLIENT_ID = "client_id"
|
||||
VIDEO_ZOOM_CLIENT_SECRET = "client_secret"
|
||||
|
||||
Reference in New Issue
Block a user