identity_client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,4 @@
1
1
  module IdentityClient
2
2
  class ApplicationController < ActionController::Base
3
- def authenticate
4
- redirect_to :login unless current_user
5
- end
6
-
7
- def current_user
8
- @current_user ||= User.find(session[:user_id]) if session[:user_id]
9
- end
10
3
  end
11
4
  end
@@ -5,7 +5,7 @@ module IdentityClient
5
5
  user = User.find_by_provider_and_uid(auth["provider"], auth["uid"].to_s) || User.create_with_omniauth(auth)
6
6
 
7
7
  session[:user_id] = user.id
8
- redirect_to root_url
8
+ redirect_to '/'
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module IdentityClient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: identity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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: 2013-04-06 00:00:00.000000000 Z
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails