Merge pull request #259 from differentreality/openid_documentation
Documentation about using OpenID
This commit is contained in:
commit
b1094342b5
4 changed files with 57 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue