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

@ -1,4 +1,7 @@
- if devise_mapping.omniauthable?
- resource_class.omniauth_providers.each do |provider|
= link_to image_tag("#{provider}.png", size: '32x32') + provider , omniauth_authorize_path(resource_name, provider)
%br
- provider_key = "#{provider}_key"
- provider_secret = "#{provider}_secret"
- unless Rails.application.secrets.send(provider_key).blank? || Rails.application.secrets.send(provider_secret).blank?
= link_to image_tag("#{provider}.png", size: '32x32') + provider , omniauth_authorize_path(resource_name, provider)
%br