Skip to content

Instantly share code, notes, and snippets.

@travishaynes
Created February 4, 2014 10:31
Show Gist options
  • Save travishaynes/8801265 to your computer and use it in GitHub Desktop.
Save travishaynes/8801265 to your computer and use it in GitHub Desktop.
Shopify / embedded-app-example OAuth2 authentication failure
D, [2014-02-04T10:18:07.451680 #2783] DEBUG -- :
D, [2014-02-04T10:18:07.451863 #2783] DEBUG -- :
I, [2014-02-04T10:18:07.452532 #2783] INFO -- : Started GET "/auth/shopify/callback?shop=[filtered]&signature=[filtered]&timestamp=1391509087&admin=1" for 10.0.2.2 at 2014-02-04 10:18:07 +0000
I, [2014-02-04T10:18:07.912449 #2783] INFO -- omniauth: (shopify) Setup endpoint detected, running now.
I, [2014-02-04T10:18:07.913078 #2783] INFO -- omniauth: (shopify) Callback phase initiated.
E, [2014-02-04T10:18:08.485084 #2783] ERROR -- omniauth: (shopify) Authentication failure! invalid_credentials: OAuth2::Error, invalid_request:
{"error":"invalid_request"}
F, [2014-02-04T10:18:08.487399 #2783] FATAL -- :
OAuth2::Error (invalid_request:
{"error":"invalid_request"}):
oauth2 (0.9.3) lib/oauth2/client.rb:110:in `request'
oauth2 (0.9.3) lib/oauth2/client.rb:135:in `get_token'
oauth2 (0.9.3) lib/oauth2/strategy/auth_code.rb:29:in `get_token'
omniauth-oauth2 (1.1.2) lib/omniauth/strategies/oauth2.rb:93:in `build_access_token'
omniauth-oauth2 (1.1.2) lib/omniauth/strategies/oauth2.rb:75:in `callback_phase'
omniauth (1.2.1) lib/omniauth/strategy.rb:227:in `callback_call'
omniauth (1.2.1) lib/omniauth/strategy.rb:184:in `call!'
omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'
omniauth (1.2.1) lib/omniauth/builder.rb:59:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.1.0.beta1) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.1.0.beta1) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
activerecord (4.1.0.beta1) lib/active_record/migration.rb:380:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.1.0.beta1) lib/active_support/callbacks.rb:82:in `run_callbacks'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.1.0.beta1) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.0.beta1) lib/rails/rack/logger.rb:22:in `call'
quiet_assets (1.0.2) lib/quiet_assets.rb:18:in `call_with_quiet_assets'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.0.beta1) lib/active_support/cache/strategy/local_cache.rb:86:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.0.beta1) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.1.0.beta1) lib/rails/engine.rb:516:in `call'
railties (4.1.0.beta1) lib/rails/application.rb:142:in `call'
thin (1.6.1) lib/thin/connection.rb:82:in `block in pre_process'
thin (1.6.1) lib/thin/connection.rb:80:in `catch'
thin (1.6.1) lib/thin/connection.rb:80:in `pre_process'
thin (1.6.1) lib/thin/connection.rb:55:in `process'
thin (1.6.1) lib/thin/connection.rb:41:in `receive_data'
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run_machine'
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'
thin (1.6.1) lib/thin/backends/base.rb:73:in `start'
thin (1.6.1) lib/thin/server.rb:162:in `start'
thin (1.6.1) lib/thin/controllers/controller.rb:87:in `start'
thin (1.6.1) lib/thin/runner.rb:200:in `run_command'
thin (1.6.1) lib/thin/runner.rb:156:in `run!'
thin (1.6.1) bin/thin:6:in `<top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment