msjit / testcasedb

TestCaseDB - Web based test case management
MIT License
40 stars 18 forks source link

CreateSettingsGoogleAuth is not migrated properly #21

Closed kirantpatil closed 10 years ago

kirantpatil commented 10 years ago

I tried to access using the google oauth, I get below error on browser.

Error on browser


  1. That’s an error.

Error: invalid_request

Missing required parameter: client_id

Learn more Request Details

scope=email profile
response_type=code
redirect_uri=http://qax.greenturtles.in/auth/google_oauth2/callback
access_type=offline
state=968210d90f0b479ccfb1b1bc3cb104d7f56a307bceec2921
client_id=

Settings database does not contain "Google Auth Client ID" and "Google Auth Secret"

Sceenshot of settings


screenshot from 2014-07-04 15 35 45

joffems commented 10 years ago

I found an issue with GoogleAuth when doing a fresh install. I have updated the new install script to deal with this.

To fix your system you need to open rails console and run the following lines.

Setting.find_or_create_by_name(:name => 'Google Auth Client ID', :value => 'none') Setting.find_or_create_by_name(:name => 'Google Auth Secret', :value => 'none', :description => 'Google Auth Secret')

If you're running your system with the production environment, please use 'bundle exec rails console production'

kirantpatil commented 10 years ago

verified the fix and resolved the issue.