st4lk / django-rest-social-auth

OAuth signin with django rest framework
MIT License
519 stars 122 forks source link

Facebook and Apple ID token verification #143

Open zubrzubr opened 3 years ago

zubrzubr commented 3 years ago

Hi everyone. I'm trying to implement login with just token verification using apple id and facebook. The flow is:

  1. User sends token from facebook to urls_jwt_pair
  2. Backend verifies token.
  3. If token verified, creates new users and returns token
  4. User uses that token for every request

I configured and setuped facebook test app, but when i'm trying to send test token to urls_jwt_pair I god 400 error response with details:

Unable to load URL: The domain of this URL is not part of the application domain. To download this URL, add all your application's domains and subdomains to the application's domain field in its settings

Is it possible to test it from local? Does anyone has the same issue?

Thanks

rj76 commented 3 years ago

I think this might be that you're missing something in your "Sign in with Apple" Service ID. Check your domains and/or subdomains in https://developer.apple.com/account/resources/identifiers/list/serviceId.