Skip to content

Commit 1c5a5cb

Browse files
committed
fix: Apple provider
1 parent 91530f9 commit 1c5a5cb

File tree

1 file changed

+10
-16
lines changed
  • examples/with-django/with-thirdpartyemailpassword/project

1 file changed

+10
-16
lines changed

examples/with-django/with-thirdpartyemailpassword/project/settings.py

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,31 +102,25 @@ def get_website_domain():
102102
],
103103
)
104104
),
105-
# FIXME: Properly migrate apple provider
106-
# Apple(
107-
# is_default=True,
108-
# client_id=os.environ.get("APPLE_CLIENT_ID"), # type: ignore
109-
# client_key_id=os.environ.get("APPLE_KEY_ID"), # type: ignore
110-
# client_team_id=os.environ.get("APPLE_TEAM_ID"), # type: ignore
111-
# client_private_key=os.environ.get("APPLE_PRIVATE_KEY"), # type: ignore
112-
# ),
113-
# Apple(
114-
# client_id=os.environ.get("APPLE_CLIENT_ID_MOBILE"), # type: ignore
115-
# client_key_id=os.environ.get("APPLE_KEY_ID"), # type: ignore
116-
# client_team_id=os.environ.get("APPLE_TEAM_ID"), # type: ignore
117-
# client_private_key=os.environ.get("APPLE_PRIVATE_KEY"), # type: ignore
118-
# ),
119105
thirdpartyemailpassword.ProviderInput(
120106
config=thirdpartyemailpassword.ProviderConfig(
121107
third_party_id="apple",
122108
clients=[
123109
thirdpartyemailpassword.ProviderClientConfig(
124110
client_id=os.environ["APPLE_CLIENT_ID"],
125-
client_secret=os.environ["TODO"], # TODO
111+
additional_config={
112+
"keyId": os.environ["APPLE_KEY_ID"],
113+
"teamId": os.environ["APPLE_TEAM_ID"],
114+
"privateKey": os.environ["APPLE_PRIVATE_KEY"],
115+
}
126116
),
127117
thirdpartyemailpassword.ProviderClientConfig(
128118
client_id=os.environ["APPLE_CLIENT_ID_MOBILE"],
129-
client_secret=os.environ["TODO"], # TODO
119+
additional_config={
120+
"keyId": os.environ["APPLE_KEY_ID"],
121+
"teamId": os.environ["APPLE_TEAM_ID"],
122+
"privateKey": os.environ["APPLE_PRIVATE_KEY"],
123+
}
130124
),
131125
],
132126
)

0 commit comments

Comments
 (0)