Class: OauthConsumersController
- Inherits:
-
ApplicationController
show all
- Includes:
- Oauth::Controllers::ConsumerController
- Defined in:
- app/controllers/oauth_consumers_controller.rb
Instance Method Summary
collapse
#after_sign_in_path_for, #api_authenticate!, #current_project, #expire_revision!, #followed_projects, #no_cache, #read_revision, #require_login, #return_or_cache_revision!, #revision, #save_current_project, #set_current_project, #unfurling?
Methods included from UrlHelper
#edit_release_path, #edit_release_url, #feature_path, #github_commit_range_url, #github_commit_url, #github_project_url, #github_url?, #goldmine_case_number_url, #link_to_project_feature, #new_release_url, #release_path, #release_url, #releases_path
Instance Method Details
#callback ⇒ Object
17
18
19
|
# File 'app/controllers/oauth_consumers_controller.rb', line 17
def callback
super
end
|
#callback2 ⇒ Object
21
22
23
|
# File 'app/controllers/oauth_consumers_controller.rb', line 21
def callback2
super
end
|
#callback2_oauth_consumer_url ⇒ Object
for some reason oauth-plugin is broken and can’t figure this out:
30
31
32
|
# File 'app/controllers/oauth_consumers_controller.rb', line 30
def callback2_oauth_consumer_url
root_url + "oauth_consumers/github/callback2"
end
|
#client ⇒ Object
25
26
27
|
# File 'app/controllers/oauth_consumers_controller.rb', line 25
def client
super
end
|
#index ⇒ Object
12
13
14
15
|
# File 'app/controllers/oauth_consumers_controller.rb', line 12
def index
@consumer_tokens = ConsumerToken.where(user_id: current_user.id)
@services = OAUTH_CREDENTIALS.keys - @consumer_tokens.map { |c| c.class.service_name }
end
|