tuwien_logon 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +13 -3
- data/VERSION +1 -1
- data/lib/tuwien_logon/user_info_request.rb +1 -1
- data/tuwien_logon.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -4,9 +4,19 @@ This gem is an authentication solution for ruby applications being used at the V
|
|
4
4
|
|
5
5
|
== Note
|
6
6
|
|
7
|
-
You will only be able to use this gem for authentication if you have already registered your application at the ZID. Find more information at http://www.zid.tuwien.ac.at/sts/dateninfrastruktur/authentifizierungsservice
|
7
|
+
You will only be able to use this gem for authentication if you have already registered your application at the ZID. Find more information at http://www.zid.tuwien.ac.at/sts/dateninfrastruktur/authentifizierungsservice.
|
8
8
|
Unfortunately this page is only provided in german though.
|
9
9
|
|
10
|
+
== Installation
|
11
|
+
|
12
|
+
Installing tuwien_logon is rather simple:
|
13
|
+
|
14
|
+
gem install tuwien_logon
|
15
|
+
|
16
|
+
In your application you just have to require the gem in order to use it:
|
17
|
+
|
18
|
+
require 'tuwien_logon'
|
19
|
+
|
10
20
|
== Usage
|
11
21
|
|
12
22
|
For now only retrieving user information by their oid is implemented.
|
@@ -28,8 +38,8 @@ You can change the name of these attributes in the configuration.
|
|
28
38
|
|
29
39
|
You can alter the following configuration options, here their default values are shown:
|
30
40
|
|
31
|
-
|
32
|
-
|
41
|
+
TuwienLogon.config.user_info_url = 'https://iu.zid.tuwien.ac.at/AuthServ.userInfo'
|
42
|
+
TuwienLogon.config.user_info_params = [:oid, :firstname, :lastname, :title, :matriculation_number, :institute_symbol]
|
33
43
|
|
34
44
|
== Note on Patches/Pull Requests
|
35
45
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -22,7 +22,7 @@ module TuwienLogon
|
|
22
22
|
infos = split_response(infos.to_s) unless infos.is_a? Array
|
23
23
|
|
24
24
|
userdata = TuwienLogon::UserInfo.new(params)
|
25
|
-
|
25
|
+
params.each_with_index do |param, index|
|
26
26
|
userdata.send("#{param}=".to_sym, infos[index]) unless infos[index].nil? || infos[index].empty?
|
27
27
|
end
|
28
28
|
userdata
|
data/tuwien_logon.gemspec
CHANGED