Esri / omniauth-arcgis

ArcGIS Online strategy for OmniAuth
https://rubygems.org/gems/omniauth-arcgis
Apache License 2.0
3 stars 3 forks source link

Development env? #1

Open jornado opened 10 years ago

jornado commented 10 years ago

Is there a way to get this to work with RACK_ENV set to development? Works fine for me in production, but in development the middleware before rendering /auth/arcgis throws "invalid client_id" exceptions (same client_id/secret in both cases):

E, [2014-01-24T16:14:00.902080 #83824] ERROR -- omniauth: (arcgis) Authentication failure! invalid_request: OmniAuth::Strategies::OAuth2::CallbackError, invalid_request | Invalid client_id
E, [2014-01-24T16:14:00.902330 #83824] ERROR -- omniauth: (arcgis) Authentication failure! invalid_credentials: OmniAuth::Strategies::OAuth2::CallbackError, invalid_request | Invalid client_id