GithubHelp home page GithubHelp logo

Comments (10)

joobisb avatar joobisb commented on June 29, 2024 1

yes I did that

from oauth2.

scrogson avatar scrogson commented on June 29, 2024

@joobisb can you please try with master?

from oauth2.

joobisb avatar joobisb commented on June 29, 2024

@scrogson I tried by importing this in mix.exs

def application do
  # Add the application to your list of applications.
  # This will ensure that it will be included in a release.
  [applications: [:logger, :oauth2]]
end

defp deps do
  # Add the dependency
  [{:oauth2, "~> 1.0"}]
end

What should I do to try in master?

from oauth2.

scrogson avatar scrogson commented on June 29, 2024
{:oauth2, github: β€œscrogson/oauth2”}

from oauth2.

joobisb avatar joobisb commented on June 29, 2024

@scrogson I tried but still getting same error response. Does it have something to do with content-type?

from oauth2.

scrogson avatar scrogson commented on June 29, 2024

I believe the content-type is set for you automatically.

from oauth2.

scrogson avatar scrogson commented on June 29, 2024

Just to make sure...did you run mix does.update oauth2 after changing the dependency in mix.exs?

from oauth2.

joobisb avatar joobisb commented on June 29, 2024

@scrogson So what might be the issue?

from oauth2.

scrogson avatar scrogson commented on June 29, 2024

Next thing to try is to turn on hackney tracing and figure out what is being sent to the server. Place this before the call to get_token:

:hackney_trace.enable(:max, :io)

from oauth2.

joobisb avatar joobisb commented on June 29, 2024

@scrogson The issue is solved. By default the accept and content-type header was application/x-www-form-urlencoded and that was causing the problem. I changed accept header to */* and I got the access token. Thanks for helping me to trace it out.

from oauth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.