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
270 stars 34 forks source link

Changing the auth token header 'Bearer' to a custom header? #114

Closed thesealednectar22 closed 1 year ago

thesealednectar22 commented 2 years ago

Could you please direct me to how to change the default auth token header 'Bearer' to a custom header? Thank you

denizdogan commented 2 years ago

It probably would not be simple, as "Bearer" is pretty hardcoded. Maybe your best bet is to rewrite all request headers before this library starts processing them.

wagnerdelima commented 1 year ago

Please, give me more context on what you need to do here. Thanks.

wagnerdelima commented 1 year ago

I am closing this issue due to a lack of context.