faction 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- data/lib/faction.rb +6 -1
- data/lib/faction/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39ed8908f8e604d6e7406f3c54cd41da129e96af
|
|
4
|
+
data.tar.gz: 908362acba227bda26bb540ea8be6c5073d01cb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ff6e96be950c09c2d202d3571ea076af1992250d52155e23b6dac1017d75460682145fcf9d9641340d43a86c5bcf32ef3c5d182005eaca48a54a1cfd6d88803
|
|
7
|
+
data.tar.gz: 95b4db95e17bf03d60dc73e319d492dcccbde9456babe615e459f3b4b21ab9be2d31aa9399e685f6c1bbc88eb7f4d5778f233069c3fbaae9d75608253e5d7808
|
data/lib/faction.rb
CHANGED
|
@@ -110,9 +110,14 @@ module Faction #:nodoc:
|
|
|
110
110
|
|
|
111
111
|
# See <tt>SecurityServerClient.isValidPrincipalToken</tt>
|
|
112
112
|
def valid_principal_token?(token, validation_factors = nil)
|
|
113
|
-
|
|
113
|
+
if (validation_factors.nil? || validation_factors.empty?)
|
|
114
|
+
authenticated_crowd_call(:is_valid_principal_token,
|
|
115
|
+
token,"")
|
|
116
|
+
else
|
|
117
|
+
authenticated_crowd_call(:is_valid_principal_token,
|
|
114
118
|
token,
|
|
115
119
|
{'auth:validationFactors' => convert_validation_factors(validation_factors)})
|
|
120
|
+
end
|
|
116
121
|
end
|
|
117
122
|
|
|
118
123
|
# See <tt>SecurityServer.updatePrincipalCredential</tt>
|
data/lib/faction/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faction
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Olli Helenius
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
90
|
rubyforge_project:
|
|
91
|
-
rubygems_version: 2.
|
|
91
|
+
rubygems_version: 2.4.7
|
|
92
92
|
signing_key:
|
|
93
93
|
specification_version: 4
|
|
94
94
|
summary: A simple Savon-based client for Atlassian Crowd SOAP API
|