Skip to content
New issue

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

Improvement in the documentation - PARAMETERS FROM CALLBACK BODY #352

Open
masdeval opened this issue Jan 21, 2023 · 3 comments
Open

Improvement in the documentation - PARAMETERS FROM CALLBACK BODY #352

masdeval opened this issue Jan 21, 2023 · 3 comments

Comments

@masdeval
Copy link

masdeval commented Jan 21, 2023

When you write "The PARAMETERS FROM CALLBACK BODY should be filled with the urlencoded body you receive on the endpoint from Apple's server" you mean that the backend must extract the claims from the id_token and send them, right? We can see in the AuthorizationCredentialAppleID:parseAuthorizationCredentialAppleIDFromDeeplink method it gets the user information doing

final user = deeplink.queryParameters.containsKey('user') ? json.decode(deeplink.queryParameters['user'] as String) as Map<String, dynamic> : null;
so it is expecting a parameter called user which, of course, is not present in the body sent by Apple.

I do not know if I misunderstood the actual documentation and all of that interpretation is embedded in the snippet "should be filled with the urlencoded body" but I spent a considerably amount of time to figure all these out.

@jacsdev
Copy link

jacsdev commented Aug 17, 2023

Were you able to make it work? I'm facing a similar situation

@masdeval
Copy link
Author

I was implementing a login for a flutter app. I was struggling with the fact that Apple sign in , differently from Google, does not send any information about the user, not even the email. Despite all my attempts of processing its return in a backend Java REST url ( what I mentioned before indeed works that way) it did not send user information. When the user choose login via Apple in the app, I open a dialog to allow the input of all personal information which I save in the database. Although I still validate it’s password using Apple

@jacsdev
Copy link

jacsdev commented Aug 17, 2023

In my particular case is that when in my backend I receive only id_token and code, and when I send that to the android app through a temporary redirection with an "intent://callback", it tells me null check...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants