Implementing Apple Sign in using django-allauth

Viewed 37

I am currently implementing social login using django-allauth. I've had no problems implementing social logins like Google, Facebook and etc. However, when it came to Apple, the package doesn't seem to work properly.

I've been testing the logins using https. Also, I've completed settings in Apple Developer and Django Admin.

The below is the capture of my login page.

enter image description here

when I click on apple icon, it gets redirected to apple page to proceed.

enter image description here

When I enter the apple login and complete authentication on apple site, the browser throws Server Error(500).

enter image description here

I believe my settings for apple sign-in have been correct. The below is my admin settings for apple sign-in.

enter image description here

I tried to search the references on the internet but I couldn't find anyone experienced the same issue. I have no idea on how to resolve this issue nor do I know the way to find where the error is coming from.

Could anyone suggest any method on how to implement apple sign-in using django-allauth package?

For further information, I've added the below information in the settings.py for apple login details.

# apple login settings 

SOCIALACCOUNT_PROVIDERS = {
    "apple": {
    "APP": {
        # Your service identifier.
        "client_id" : "example.login",

        # The Key ID (visible in the "View Key Details" page).
        "secret": "1ZBEDD1B.com.example",


        "key": "ABW34RZ6",
        "certificate_key": ""----BEGIN PRIVATE KEY---/46464223aassd/12121f+22+886556656565656545454----END PRIVATE KEY----""}}}

Then, I tried to login using apple sign-in in debug. I got this error below.

enter image description here

Anyone can help on this???

Thanks,

0 Answers
Related