sso-auth 0.0.1.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  <% if current_user %>
2
2
  <span class='current_user'><%= current_user.sso_auth_name %></span>
3
- <%= link_to('Выход', sso_auth.destroy_user_session_path) %>
3
+ <%= link_to('Выход', '/sign_out') %>
4
4
  <% else %>
5
5
  <%= link_to 'Вход в систему', user_omniauth_authorize_path(:identity) %>
6
6
  <% end %>
data/config/routes.rb CHANGED
@@ -1,17 +1,11 @@
1
- SsoAuth::Engine.routes.draw do
2
- resources :users, :only => :index
3
- get 'sign_out' => 'sessions#destroy', :as => :destroy_user_session
4
- end
5
-
6
1
  Rails.application.routes.draw do
7
2
  devise_for :users, :path => 'auth',
8
3
  :controllers => {:omniauth_callbacks => 'sso_auth/omniauth_callbacks'},
9
4
  :skip => [:sessions]
10
5
 
11
6
  devise_scope :users do
7
+ get 'sign_out' => 'sso-auth/sessions#destroy', :as => :destroy_user_session
12
8
  get 'sign_in' => redirect('/auth/auth/identity'), :as => :new_user_session
13
9
  end
14
-
15
- mount SsoAuth::Engine => '/auth'
16
10
  end
17
11
 
@@ -1,3 +1,3 @@
1
1
  module SsoAuth
2
- VERSION = "0.0.1.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sso-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-19 00:00:00.000000000 Z
12
+ date: 2012-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cancan
@@ -180,7 +180,6 @@ extra_rdoc_files: []
180
180
  files:
181
181
  - app/controllers/sso_auth/omniauth_callbacks_controller.rb
182
182
  - app/controllers/sso_auth/sessions_controller.rb
183
- - app/controllers/sso_auth/users_controller.rb
184
183
  - app/views/sso-auth/shared/_user_box.html.erb
185
184
  - config/initializers/devise.rb
186
185
  - config/locales/en.yml
@@ -217,7 +216,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
216
  version: '0'
218
217
  segments:
219
218
  - 0
220
- hash: 2057994539849800836
219
+ hash: 1877857579955504389
221
220
  required_rubygems_version: !ruby/object:Gem::Requirement
222
221
  none: false
223
222
  requirements:
@@ -226,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
225
  version: '0'
227
226
  segments:
228
227
  - 0
229
- hash: 2057994539849800836
228
+ hash: 1877857579955504389
230
229
  requirements: []
231
230
  rubyforge_project:
232
231
  rubygems_version: 1.8.24
@@ -1,11 +0,0 @@
1
- require 'open-uri'
2
-
3
- class SsoAuth::UsersController < ApplicationController
4
- respond_to :json
5
-
6
- def index
7
- authorize! :manage, :permissions
8
- response = open("#{Settings['sso.url']}/users.json?user_search[keywords]=#{URI.escape(params[:term])}")
9
- render :json => JSON.parse(response.read)
10
- end
11
- end