Skip to content

Instantly share code, notes, and snippets.

@wsmoak
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsmoak/278be60cc09421d4b9b6 to your computer and use it in GitHub Desktop.
Save wsmoak/278be60cc09421d4b9b6 to your computer and use it in GitHub Desktop.
Logger output from Elixir OAuth2 Fitbit.get_token
21:05:35.526 request_id=7OAOqWxZPN0KhWAW/0p7 [info] %OAuth2.AccessToken{access_token: nil, client: %OAuth2.Client{authorize_url: "https://www.fitbit.com/oauth2/authorize", client_id: "22ABCD", client_secret: "c08ac2a9XXXXXXXa55caffb21292", headers: [{"Content-Type", "application/x-www-form-urlencoded"}, {"Accept", "application/json"}], params: %{"client_id" => "229MBF", "client_secret" => "c08ac2aXXXXXXXXXa55caffb21292", "code" => "e590a00XXXXXXXXXX1bb1d43d2906b515408", "grant_type" => "authorization_code", "redirect_uri" => "http://lvh.me:4000/auth/callback"}, redirect_uri: "http://lvh.me:4000/auth/callback", site: "https://api.fitbit.com", strategy: Fitbit, token_method: :post, token_url: "https://api.fitbit.com/oauth2/token"}, expires_at: nil, other_params: %{"errors" => [%{"errorType" => "oauth", "fieldName" => "n/a", "message" => "No Authorization header provided in the request. Each call to Fitbit API should be OAuth signed"}], "success" => false}, refresh_token: nil, token_type: "Bearer"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment