blti_omniauth 0.1.0 → 0.1.1

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.
data/.DS_Store ADDED
Binary file
data/README.rdoc CHANGED
@@ -9,7 +9,7 @@ The work done is blti_omniauth is the callback phase in omniauth. That is, creat
9
9
 
10
10
  Add to your Gemfile the lines
11
11
 
12
- gem 'blti_omniauth', :git => "http://github.com/xaracil/blti_omniauth.git"
12
+ gem 'blti_omniauth'
13
13
 
14
14
  If you're using Multiauth (http://github.com/dcu/multiauth), a forked version is required. In your Gemfile replace multiauth's line by
15
15
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blti_omniauth}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Xavi Aracil}]
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
+ ".DS_Store",
20
21
  ".document",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
data/lib/blti_omniauth.rb CHANGED
@@ -33,8 +33,8 @@ module OmniAuth
33
33
  if ::OAuth::Signature.verify(request, { :consumer => consumer, :token => token} )
34
34
  @uid = Base64.decode64(request.params['user_id'])
35
35
  @avatar = Base64.decode64(request.params['user_image'])
36
- @username = Base64.decode64(request.params['custom_username'])
37
- @nickname = Base64.decode64(request.params['custom_fullname'])
36
+ @username = Base64.decode64(request.params['custom_fullname'])
37
+ @nickname = Base64.decode64(request.params['lis_person_sourcedid'].split(':').last)
38
38
  puts "BLTI: valid! uid=#{@uid}, avatar=#{@avatar}, username=#{@username}, nickname=#{@nickname}"
39
39
  # OmniAuth takes care of the rest
40
40
  super
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: blti_omniauth
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Xavi Aracil
@@ -88,6 +88,7 @@ extra_rdoc_files:
88
88
  - LICENSE.txt
89
89
  - README.rdoc
90
90
  files:
91
+ - .DS_Store
91
92
  - .document
92
93
  - Gemfile
93
94
  - Gemfile.lock
@@ -112,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
113
  requirements:
113
114
  - - ">="
114
115
  - !ruby/object:Gem::Version
115
- hash: 3035692690472734273
116
+ hash: -4120498395697522255
116
117
  segments:
117
118
  - 0
118
119
  version: "0"