Comments (18)
Sorry for the late reply. I will loook into this a bit later next week if I can. I am extremely busy with work right now.
from drf-social-oauth2.
same issue
from drf-social-oauth2.
@MidoCobra and @ecakashjadhav, did you manage to overcome this?
from drf-social-oauth2.
@wagnerdelima No. I used another library.
Thanks
from drf-social-oauth2.
@wagnerdelima Can you add documentation for signing with apple?. Because python-social-auth is not clear documentation for apple.
from drf-social-oauth2.
Hi @ecakashjadhav,
I will work on this in the future, promise. However, as of now, I believe the framework needs attention in other areas. I know, python-social-auth sometimes does not support a few backends, so there is no way around that.
from drf-social-oauth2.
@wagnerdelima Thanks for quick response
from drf-social-oauth2.
@ecakashjadhav my pleasure.
from drf-social-oauth2.
@ecakashjadhav how exactly do I replicate this issue in my local environment?
from drf-social-oauth2.
Create a user with a simple email and password. Then that same email using try to sign with Facebook
from drf-social-oauth2.
@MidoCobra and @ecakashjadhav, did you manage to overcome this?
Sorry for being away for a long time...
Actually I did not, as the project stopped...
but it is still published .. you may try to register on it to figure the problem and test it for further improvement for your great project.. www.marchpart.com
Thanks a lot
from drf-social-oauth2.
Thank you!
from drf-social-oauth2.
Where are we on this issue ? Actually several other users (including myself) are having this issue.
Several opened tickets are mentioning it, namely : #131 and #147
in #131 you might find the beginning of an answer, or a clue about what is going wrong :
"So I went into drf_social_oauth2/views/ConvertTokenView.post() to manually remove the PS1 header from the response headers and it works fine. I know this isn't ideal so I'd like suggestions for a better way. If this is a bug on the module, please get it fixed."
All the best !
from drf-social-oauth2.
I am closing this issue. You can handle password-based authentication in your backend. It's not drf-social-oauth's responsibility to deal with it, since it already deals with multiple social backend's sign-in.
from drf-social-oauth2.
@wagnerdelima Thanks!
from drf-social-oauth2.
Same issue!! Is the issue resolved yet?
If we have a custom user of same email which we are trying to login with social accounts.
/convert-token throws an error of [Auth/convert-token returns 500 internal server error when email is already registered.]
from drf-social-oauth2.
@MidoCobra @ecakashjadhav @fahedmahidi @bilal-nexquery,
If you have a customer user you will need to handle the duplicate email address on your backend. drf-social-oauth2 does not save the email address. Here is one example:
- I created one user in my django admin with my personal email address.
- I fired a request to google and to facebook backends via /convert-token endpoint.
- All requests are successful.
As you can see, the the email field is empty:
Let me know if there is another way to replicate this.
from drf-social-oauth2.
@wagnerdelima Thanks for your time and efforts.
I believe this will still throw an error if you have (username field as email) in your CustomUser model.
This is because if you register user using an email registered with your social account first and then send a request to convert/token.
It will throw error as it will try to save the user with email address already present in your db and being unique field it will return with an error.
I am also personally looking in this issue will update if any solution is found.
from drf-social-oauth2.
Related Issues (20)
- How to associate an existing user with multiple social accounts (different emails)? [DRF_SOCIAL_OAUTH2] HOT 2
- convert_token returns html headers with user environment variables HOT 4
- Running convert-token for the second time returns html headers with user environment variables HOT 12
- How to write testcases in following code , as we needed client id and client secret
- Customised User Model with 'email' as USERNAME_FIELD HOT 1
- What are SOCIAL_AUTH_GOOGLE_OAUTH2_KEY and SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET? HOT 1
- Support authorization code flow for Google OAuth HOT 4
- Add Google Sign In Documentation to ReadMe
- Google oauth2 no longer provides access token but the idToken HOT 10
- Add Documentation for invalidate-refresh-tokens url
- Create ReadTheDocs Documentation
- Custom Payload for the JWT tokens HOT 1
- convert-token return access_denied in facebook backend HOT 3
- Authorization backend function do_auth called twice HOT 1
- 500 Character limit exceeded HOT 2
- "error": "access_denied", "error_description": "Your credentials aren't allowed" HOT 4
- Apparently any token valid by Google Auth, even if generated by another CLIENT_ID is accepting it, is that correct? HOT 1
- "token": [ "Ensure this field has no more than 500 characters." ] } HOT 1
- Competing Authentication Tokens when using multiple devices HOT 1
- PLEASE STOP SPAMMING EMAILS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drf-social-oauth2.