I want to use google-plus backend, that allows to authenticate with id_token [0]. But currently serializer for OAuth2InputSerializer [1] requires code param, which breaks this server-side auth flow. This is needed for Google Sign In process on Android (https://developers.google.com/identity/sign-in/web/backend-auth).
Would it be possible to make code optional parameter to OAuth2InputSerializer? I can make a small PR that adds required=False to it.
[0] https://github.com/python-social-auth/social-core/blob/fca33317dfd29f14b060d21d0af1ab9b9de3a0a1/social_core/backends/google.py#L129
[1] https://github.com/st4lk/django-rest-social-auth/blob/master/rest_social_auth/serializers.py#L12
I want to use
google-plusbackend, that allows to authenticate withid_token[0]. But currently serializer for OAuth2InputSerializer [1] requirescodeparam, which breaks this server-side auth flow. This is needed for Google Sign In process on Android (https://developers.google.com/identity/sign-in/web/backend-auth).Would it be possible to make
codeoptional parameter to OAuth2InputSerializer? I can make a small PR that addsrequired=Falseto it.[0] https://github.com/python-social-auth/social-core/blob/fca33317dfd29f14b060d21d0af1ab9b9de3a0a1/social_core/backends/google.py#L129
[1] https://github.com/st4lk/django-rest-social-auth/blob/master/rest_social_auth/serializers.py#L12