Skip to content

Commit 58421c8

Browse files
Update src/satosa/backends/apple.py
Co-authored-by: Ivan Kanakarakis <[email protected]>
1 parent 253a15f commit 58421c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/satosa/backends/apple.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,16 @@ def response_endpoint(self, context, *args):
202202
"""
203203
backend_state = context.state[self.name]
204204

205-
# Apple sends some user information only via POST in the first request
206-
# https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple
205+
# Apple has no userinfo endpoint
206+
# but may send some user information via POST in the first request.
207+
#
208+
# References:
209+
# - https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple
210+
# - https://developer.apple.com/documentation/sign_in_with_apple/namei
207211
try:
208212
userdata = context.request.get("user", "{}")
209213
userinfo = json.load(userdata)
210214
except Exception as e:
211-
# Apple has no userinfo endpoint
212215
userinfo = {}
213216

214217
authn_resp = self.client.parse_response(

0 commit comments

Comments
 (0)