A fix for missed client_secret in auth_code (You must provide a client_secret error) #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Client secret is not passed anymore.
ueberauth/oauth2@7d5ae39
This causes
%OAuth2.Client{authorize_url: "https://api.instagram.com/oauth/authorize/",
client_id: "40b734125eb44a2caf3b96ce70439fe2",
client_secret: "2e3c6ad2fff14709a792e8800cbed39c", headers: [], params: %{},
redirect_uri: "http://localhost:4000/instagram/token",
site: "https://api.instagram.com", strategy: Elixtagram.OAuthStrategy,
token: %OAuth2.AccessToken{access_token: nil, expires_at: nil,
other_params: %{"code" => 400,
"error_message" => "You must provide a client_secret",
"error_type" => "OAuthException"}, refresh_token: nil,
token_type: "Bearer"}, token_method: :post,
token_url: "https://api.instagram.com/oauth/access_token"}
Check out this thread ueberauth/oauth2#64
I did the same update for exlitagram.