Closed Danirill closed 2 years ago
I specified the wrong classpath in AUTHENTICATION_BACKENDS
Path should not start with a dot.
In my example, correct path is:
AUTHENTICATION_BACKENDS = ( .... 'api.v1.users.custom-auth-backends.AppleIdMobile.AppleIdMobile', # Working :) .... )
Hope this helps someone
Thank you for your contribution @Danirill
Hi, I'm trying to implement an apple login. But in my project, Apple login is needed both on the web interface and in the mobile application. I set up an apple backend and it works great! But for two platforms, you need to use two different client_id. I saw advice on stackoverflow that two platforms can use multiple backends.
I added my custom backend following python-social-auth instructions but it didn't work.
I implemented my custom backend like this:
It turned out something like this:
When I try to convert-token, I get error:
Any ideas what could have gone wrong? Any help would be very helpful, thanks!