django-graphql-social-auth
django-graphql-social-auth copied to clipboard
Setting a custom redirect_uri
I'm trying to use this library in conjunction with a React application and I'm implementing a LinkedIN login.
The issue I'm facing is that my redirect_uri is different from the default python social auth value. I'm receiving the authorization code on the front-end and triggering the mutation, however I'm receiving a graphql.error.located_error.GraphQLLocatedError: Your credentials aren't allowed
error, most probably because of the different redirect_uri values (LinkedIN is enforcing using the same redirect_uri).
Previously, I was using the django-rest-social-auth
package that provides for supplying a value for the redirect_uri
value. I was wondering if something similar is possible using django-graphql-social-auth
.
@andreimarinescu Where you able to figure something out? To pass the redirect URI?
@dhilipsiva I forked this repo and added a hack so I could set the redirect uri manually. It does work, but I'd exercise caution if you want to run this in production (I'd probably recommend maintaining your own fork). Here's my fork for reference if it helps: https://github.com/andreimarinescu/django-graphql-social-auth/commits/master
Thanks a lot @andreimarinescu . I am not using this for production. I am giving a talk at DjangoCon Europe 2021, so I am using this to build a demo app for that purpose. Thank you :)
That's super cool. Good luck! :)
On Thu, May 20, 2021 at 2:55 PM dhilipsiva @.***> wrote:
Thanks a lot @andreimarinescu https://github.com/andreimarinescu . I am not using this for production. I am giving a talk at DjangoCon Europe 2021, so I am using this to build a demo app for that purpose. Thank you :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flavors/django-graphql-social-auth/issues/20#issuecomment-845027607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIAH53IUMIGFTGUCMIMJU3TOT2CVANCNFSM4M5KOKQQ .
-- Andrei Marinescu -- co-founder Appscend - The Mobile Experience Igniter
Calea Plevnei 46-48, Bucharest, Romania phone: +4 0742 896 394 email: @.***