Comments (10)
yes I did that
from oauth2.
@joobisb can you please try with master
?
from oauth2.
@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.
{:oauth2, github: βscrogson/oauth2β}
from oauth2.
@scrogson I tried but still getting same error response. Does it have something to do with content-type?
from oauth2.
I believe the content-type is set for you automatically.
from oauth2.
Just to make sure...did you run mix does.update oauth2
after changing the dependency in mix.exs
?
from oauth2.
@scrogson So what might be the issue?
from oauth2.
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.
@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)
- Support For HTTP Basic Auth hasn't (yet) been officially released HOT 3
- Global Serializer Registration HOT 1
- QuickBooks with AuthCode strategy doesn't like client_id with basic auth HOT 5
- Allow authorizing without basic auth header HOT 7
- Issue with refresh_token HOT 5
- Tuple {:option, :server_only, :honor_cipher_order} being returned for error reason HOT 2
- OAuth2.Client.get_token!/2 not deserializing token response HOT 6
- Support for logging out of identity provider HOT 1
- OTP 23 OAuth2.Error HOT 2
- Oauth2.Client.get_token not working for Google HOT 5
- No Case clause matching when setting token_method HOT 2
- Defaults to application/json when content-type header is not present HOT 4
- PKCE flow? HOT 3
- %OAuth2.AccessToken{} have not parsed well for Google auth usage HOT 4
- "Accept" header should be "application/json" when getting token HOT 9
- I want to curse and curse. A lot HOT 1
- How to get user_id or username in "callback"? HOT 2
- OAuth2.Client.get_token fails for Octa servers HOT 5
- dialyzer problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2.