wagnerdelima / drf-social-oauth2

drf-social-oauth2 makes it easy to integrate Django social authentication with major OAuth2 providers, i.e., Facebook, Twitter, Google, etc.
https://drf-social-oauth2.readthedocs.io/en/latest/
MIT License
271 stars 34 forks source link

How to use in conjunction with another auth scheme? #139

Closed nicleary closed 1 year ago

nicleary commented 1 year ago

I'm trying to use drf-social-oauth2 (specifically with Github OAuth) and would like to also allow for drf's native Token authentication. Are there any examples of this?

I've attempted to complete the setup of this, and authentication works great when logging in with the github oauth flow. However, after I create a token for a user, and attempt to authenticate using that, I receive an error of

{
    "detail": "Invalid token header. Invalid backend."
}

DRF's token auth doesn't appear to provide an authentication backend. What would be the best solution in this case?

wagnerdelima commented 1 year ago

I need more details on this. What have you tried, replication methods etc.

wagnerdelima commented 1 year ago

I am closing this issue due to the lack of details. If you decide to reinvestigate the issue, please reopen it.