Sha256: fb1a480b6f1d31e83953e780fe8a92eb0b185d301704108fac281a2307e4ab64

Contents?: true

Size: 974 Bytes

Versions: 6

Compression:

Stored size: 974 Bytes

Contents

###############
# # OAuth2 Config File
# # ==================
# # 
# # Here you can sets the OAuth2 variables and require the OAuth2 Plezi controller.
# # (if the variables aren't set BEFORE the inclution, automatic setup will NOT take place)
# #
# # First set the variables:
# #
# ENV["FB_APP_ID"] ||= "app id"
# ENV["FB_APP_SECRET"] ||= "secret"
# ENV['GOOGLE_APP_ID'] = "app id"
# ENV['GOOGLE_APP_SECRET'] = "secret"
# #
# # Then, require the actual OAuth2 controller class (Plezi::OAuth2Ctrl).
# #
# require 'plezi/oauth'
# #
# # Last, but not least, remember to add the authentication route in the 'routes.rb' (remember path priority placement):
# create_auth_shared_route do |service_name, auth_token, remote_user_id, remote_user_email, remote_response|
#         # ...callback for authentication.
#         # This callback should return the app user object or false
#         # This callback hass access to the magic controller methods (request, cookies, etc')
# end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
plezi-0.9.2 resources/oauth_config.rb
plezi-0.9.1 resources/oauth_config.rb
plezi-0.9.0 resources/oauth_config.rb
plezi-0.8.7 resources/oauth_config.rb
plezi-0.8.6 resources/oauth_config.rb
plezi-0.8.5 resources/oauth_config.rb