mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 19:13:53 +00:00
apple_auth: Change BUNDLE_ID setting to APP_ID everywhere.
The apple developer webapp consistently refers this App ID. So, this clears any confusion that can occur. Since python social auth only requires us to include App ID in _AUDIENCE(a list), we do that in computed settings making it easier for server admin and we make it much clear by having it set to APP_ID instead of BUNDLE_ID.
This commit is contained in:
@@ -47,7 +47,7 @@ from .configured_settings import (
|
||||
REMOTE_POSTGRES_SSLMODE,
|
||||
SENDFILE_BACKEND,
|
||||
SENTRY_DSN,
|
||||
SOCIAL_AUTH_APPLE_BUNDLE_ID,
|
||||
SOCIAL_AUTH_APPLE_APP_ID,
|
||||
SOCIAL_AUTH_APPLE_SERVICES_ID,
|
||||
SOCIAL_AUTH_GITHUB_KEY,
|
||||
SOCIAL_AUTH_GITHUB_ORG_NAME,
|
||||
@@ -1029,7 +1029,7 @@ SOCIAL_AUTH_LOGIN_ERROR_URL = '/login/'
|
||||
# SERVICES_ID to make things more readable in the configuration
|
||||
# and our own custom backend code.
|
||||
SOCIAL_AUTH_APPLE_CLIENT = SOCIAL_AUTH_APPLE_SERVICES_ID
|
||||
SOCIAL_AUTH_APPLE_AUDIENCE = [id for id in [SOCIAL_AUTH_APPLE_CLIENT, SOCIAL_AUTH_APPLE_BUNDLE_ID] if id is not None]
|
||||
SOCIAL_AUTH_APPLE_AUDIENCE = [id for id in [SOCIAL_AUTH_APPLE_CLIENT, SOCIAL_AUTH_APPLE_APP_ID] if id is not None]
|
||||
|
||||
if PRODUCTION:
|
||||
SOCIAL_AUTH_APPLE_SECRET = get_from_file_if_exists("/etc/zulip/apple-auth-key.p8")
|
||||
|
||||
Reference in New Issue
Block a user