We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
The state response field should be used to validate the Apple response (it should be the same as the state we send in request options).
state
Request: see the ASAuthorizationAppleIDRequest and parent ASAuthorizationOpenIDRequest in apple docs:
var state: String? Data that’s returned to you unmodified in the corresponding credential after a successful authentication.
Response: ASAuthorizationAppleIDCredential docs:
var state: String? An arbitrary string that your app provides to the request that generates the credential.
To Reproduce
Steps to reproduce the behavior:
Related code is here and the set of returned fields is:
"user": appleIDCredential.user, "email": appleIDCredential.email, "givenName": appleIDCredential.fullName?.givenName, "familyName": appleIDCredential.fullName?.familyName, "identityToken": String(data: appleIDCredential.identityToken!, encoding: .utf8), "authorizationCode": String(data: appleIDCredential.authorizationCode!, encoding: .utf8)
Where appleIDCredential is the ASAuthorizationAppleIDCredential object that has state in it.
appleIDCredential
Expected behavior
The state is present in the response data.
The solution should be to add:
"state": appleIDCredential.state,
to the response.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The
state
response field should be used to validate the Apple response (it should be the same as thestate
we send in request options).Request: see the ASAuthorizationAppleIDRequest and parent ASAuthorizationOpenIDRequest in apple docs:
Response: ASAuthorizationAppleIDCredential docs:
To Reproduce
Steps to reproduce the behavior:
state
field in it.Related code is here and the set of returned fields is:
Where
appleIDCredential
is the ASAuthorizationAppleIDCredential object that has state in it.Expected behavior
The
state
is present in the response data.The solution should be to add:
to the response.
The text was updated successfully, but these errors were encountered: