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

Instagram Oauth access denied #230

Open
aryanshridhar opened this issue Jul 20, 2020 · 1 comment
Open

Instagram Oauth access denied #230

aryanshridhar opened this issue Jul 20, 2020 · 1 comment

Comments

@aryanshridhar
Copy link

Hi all ,

So I went on to try with Instagram Oauth and came up with an error as :

{"error":"access_denied","error_description":"Authentication process canceled"}

Steps to replicate the error :

  • Send a GET request to
    https://api.instagram.com/oauth/authorize
      ?client_id={instagram-app-id}
      &redirect_uri={redirect-uri}
      &scope={scope}
      &response_type=code
      &state={state}        //Optional
    in order to get Authorization Code with my own client_id and redirect_uri according to my application setup .

  • Get the Code and hit the endpoint as :
    curl -X POST \
      https://api.instagram.com/oauth/access_token \
      -F client_id=990602627938098 \
      -F client_secret=eb8c7... \
      -F grant_type=authorization_code \
      -F redirect_uri=https://socialsizzle.herokuapp.com/auth/ \
      -F code=AQBx-hBsH3...
    to get an access token generated by Facebook servers

  • Hit the endpoint ( as given in docs ) to convert the third party access token to a local access token
    curl -X POST -d "grant_type=convert_token&client_id=&client_secret=&backend=facebook&token=" http://localhost:8000/auth/convert-token
    with backend specified as instagram

Would like to know , where did I go wrong ?

@wagnerdelima
Copy link

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