Merge pull request #259 from differentreality/openid_documentation

Documentation about using OpenID
This commit is contained in:
Artem Chernikov 2014-06-24 09:59:49 +02:00
commit b1094342b5
4 changed files with 57 additions and 7 deletions

View file

@ -2,6 +2,11 @@ module OmniauthMacros
# The mock_auth configuration allows you to set per-provider (or default)
# authentication hashes to return during integration testing.
Rails.application.secrets.google_key = 'test key google'
Rails.application.secrets.google_secret = 'test secret google'
Rails.application.secrets.facebook_key = 'test key facebook'
Rails.application.secrets.facebook_secret = 'test secret facebook'
def mock_auth_new_user
OmniAuth.config.mock_auth[:google] =
OmniAuth::AuthHash.new(