{"action":"created","issue":{"url":"https://api.github.com/repos/alloy/anthology/issues/4","labels_url":"https://api.github.com/repos/alloy/anthology/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/alloy/anthology/issues/4/comments","events_url":"https://api.github.com/repos/alloy/anthology/issues/4/events","html_url":"https://github.com/alloy/anthology/issues/4","id":121461797,"number":4,"title":"Unable to perform Artsy oauth2 sign-in","user":{"login":"alloy","id":2320,"avatar_url":"https://avatars.githubusercontent.com/u/2320?v=3","gravatar_id":"","url":"https://api.github.com/users/alloy","html_url":"https://github.com/alloy","followers_url":"https://api.github.com/users/alloy/followers","following_url":"https://api.github.com/users/alloy/following{/other_user}","gists_url":"https://api.github.com/users/alloy/gists{/gist_id}","starred_url":"https://api.github.com/users/alloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alloy/subscriptions","organizations_url":"https://api.github.com/users/alloy/orgs","repos_url":"https://api.github.com/users/alloy/repos","events_url":"https://api.github.com/users/alloy/events{/privacy}","received_events_url":"https://api.github.com/users/alloy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T11:19:10Z","updated_at":"2015-12-11T15:14:42Z","closed_at":"2015-12-11T15:14:42Z","body":"The code is on this branch: https://github.com/alloy/anthology/tree/stash-auth\r\n\r\nWhen running locally, I get:\r\n\r\n```\r\nOAuth2::Error (Unauthorized: \r\n{\"error\":\"Unauthorized\",\"text\":\"The access token is invalid or has expired.\"}):\r\n  oauth2 (1.0.0) lib/oauth2/client.rb:114:in `request'\r\n  oauth2 (1.0.0) lib/oauth2/access_token.rb:107:in `request'\r\n  oauth2 (1.0.0) lib/oauth2/access_token.rb:114:in `get'\r\n  /Users/eloy/.gem/bundler/gems/omniauth-artsy-663d6fc8511e/lib/omniauth/strategies/artsy.rb:24:in `raw_info'\r\n  /Users/eloy/.gem/bundler/gems/omniauth-artsy-663d6fc8511e/lib/omniauth/strategies/artsy.rb:16:in `block in <class:Artsy>'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:105:in `instance_eval'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:105:in `block in compile_stack'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:104:in `each'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:104:in `inject'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:104:in `compile_stack'\r\n  (eval):7:in `uid_stack'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:317:in `uid'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:333:in `auth_hash'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:361:in `callback_phase'\r\n  omniauth-oauth2 (1.4.0) lib/omniauth/strategies/oauth2.rb:75:in `callback_phase'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:227:in `callback_call'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:184:in `call!'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\n  omniauth (1.2.2) lib/omniauth/builder.rb:59:in `call'\r\n```\r\n\r\nOn the deployed version it redirects to http://artsy-anthology.herokuapp.com/auth/failure?message=invalid_credentials&strategy=artsy."},"comment":{"url":"https://api.github.com/repos/alloy/anthology/issues/comments/163960535","html_url":"https://github.com/alloy/anthology/issues/4#issuecomment-163960535","issue_url":"https://api.github.com/repos/alloy/anthology/issues/4","id":163960535,"user":{"login":"alloy","id":2320,"avatar_url":"https://avatars.githubusercontent.com/u/2320?v=3","gravatar_id":"","url":"https://api.github.com/users/alloy","html_url":"https://github.com/alloy","followers_url":"https://api.github.com/users/alloy/followers","following_url":"https://api.github.com/users/alloy/following{/other_user}","gists_url":"https://api.github.com/users/alloy/gists{/gist_id}","starred_url":"https://api.github.com/users/alloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alloy/subscriptions","organizations_url":"https://api.github.com/users/alloy/orgs","repos_url":"https://api.github.com/users/alloy/repos","events_url":"https://api.github.com/users/alloy/events{/privacy}","received_events_url":"https://api.github.com/users/alloy/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T15:14:42Z","updated_at":"2015-12-11T15:14:42Z","body":"As per @dylanfareed’s advice, I had to go into Gravity and update the ‘app’ to use API v1 instead of v2."}}