Module: Devise
- Defined in:
- lib/devise_meetup_authenticatable/schema.rb,
lib/devise_meetup_authenticatable.rb,
lib/devise_meetup_authenticatable/strategy.rb,
lib/devise_meetup_authenticatable/view_helpers.rb
Overview
Defined Under Namespace
Modules: MeetupAuthenticatable
Constant Summary
collapse
- @@meetup_uid_field =
:meetup_uid
- @@meetup_token_field =
:meetup_token
- @@meetup_auto_create_account =
true
Class Method Summary
collapse
Class Method Details
.meetup_client ⇒ Object
27
28
29
30
|
# File 'lib/devise_meetup_authenticatable.rb', line 27
def self.meetup_client
@@meetup_client ||= OAuth::Consumer.new("ABDAE5ED0962D3332A0B546174997828", "856263601BB15FA05D1062AA082FF6CD", :site => "http://www.meetup.com/", :request_token_url => "http://www.meetup.com/oauth/request/", :authorize_path => 'authorize/', :access_token_path => 'oauth/access/', :oauth_callback => "oob", :http_method => :post)
end
|
.requested_scope ⇒ Object
41
42
43
|
# File 'lib/devise_meetup_authenticatable.rb', line 41
def self.requested_scope
@@requested_scope ||= 'meetup'
end
|
.session_sign_in_url(request, mapping) ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/devise_meetup_authenticatable.rb', line 33
def self.session_sign_in_url(request, mapping)
url = URI.parse(request.url)
url.path = "#{mapping.full_path}/#{mapping.path_names[:meetup]}"
url.query = nil
url.to_s
end
|