Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a custom redirect_uri #20

Open
andreimarinescu opened this issue May 10, 2020 · 4 comments
Open

Setting a custom redirect_uri #20

andreimarinescu opened this issue May 10, 2020 · 4 comments

Comments

@andreimarinescu
Copy link

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.

@dhilipsiva
Copy link

@andreimarinescu Where you able to figure something out? To pass the redirect URI?

@andreimarinescu
Copy link
Author

@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

@dhilipsiva
Copy link

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 :)

@andreimarinescu
Copy link
Author

andreimarinescu commented May 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants