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

How do I store the client secret in my mobile application for accessing the endpoint 'convert-token'? #226

Open
dropTableUsers42 opened this issue Jun 23, 2020 · 1 comment

Comments

@dropTableUsers42
Copy link

I am setting up a Django backend REST API which served data to my android application.

Currently the following happens:

  1. The android application authenticates with Google OAuth2,0 and obtains an access token
  2. The android application sends the access token along with the client secret and client id generated by django-oauth-toolkit to the convert-token endpoint, and in returns receives an access token to access the protected API
  3. The server then serves private data to the android app whenever it makes a request having the access token in the header

Now if I store the client id of step 2) in the android app, then what's to stop a person from decompiling the apk, getting the client secret, and making the convert-token request, bypassing my android app, and using the returned access token to access/modify private data in my server REST API in an uncontrolled way?

@wagnerdelima
Copy link

wagnerdelima commented Jul 4, 2020

Hi all.

My team and I are constantly using this framework and it seems it has died out there. I contacted the owner by email asking if he would add some of us as maintainers so we could continue to improve it. However we didn't get a response.

I am publishing the project under my profile and we are going to continue to invest time in it.

So I would like to gently ask you to contribute to this project on: https://github.com/wagnerdelima/drf-social-oauth2

Thank you for understanding.

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