soar-authentication-identity 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c745dec0a0e5a03ddd5fe4aa5167984b3ddfdbe
4
- data.tar.gz: 9292f6871039f0351213fee7b88680ad1151e659
3
+ metadata.gz: ca0500f0a511df25ee1a9aa93b5457f64a967b22
4
+ data.tar.gz: 12da3699bd5cc9191d41b6f19287e8731c466495
5
5
  SHA512:
6
- metadata.gz: 6ceda41f82e7e135d5b75c1be2b30e7558e1af5d2b737172e5c0a11baec4d6d0aadaba542deaee530c9c67af492f900bc50f4f0ca04d3c57e46042765baab953
7
- data.tar.gz: bbbf75c4cbe521083541531313c6be2e5975bc8373f7b716aa69c28be976645dbee3ecd0ee2f4bea0e2a3912f9bfb260ffc3cbd3a7a724b3c5acce52e2e0f88c
6
+ metadata.gz: 25d2c0be3ff3ee3391ff08af7654c5f66ac6e4ee3256a9a96cdb7c22e69670256d229ea6486385722f5f6600097750daff0556f2c93e39502fca0e6bbf0b2678
7
+ data.tar.gz: 55c94724155ac855e9dd2d6c7a4f1b62f718c23a6c3571835af8dd24e21929592d650aaa1ba07828b7a08e42aa0b69b59020f461335a4cb638f2b297f0e74c9f
data/.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "soar-authentication-identity"
3
- spec.version = "3.0.1"
3
+ spec.version = "3.0.2"
4
4
  spec.authors = ["Charles Mulder"]
5
5
  spec.email = ["charles.mulder@hetzner.co.za"]
6
6
 
@@ -10,5 +10,5 @@ Gem::Specification.new do |spec|
10
10
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
11
11
  spec.require_paths = ["lib"]
12
12
 
13
- spec.add_runtime_dependency 'soar-registry-identity', '~> 3.0', '>= 3.0.1'
13
+ spec.add_runtime_dependency 'soar-registry-identity', '~> 3.0', '>= 3.0.2'
14
14
  end
@@ -8,6 +8,10 @@ module Soar
8
8
 
9
9
  attr_reader :directory
10
10
 
11
+ ##
12
+ # @param directory [Object]
13
+ # @param authenticated_identifier [String]
14
+ ##
11
15
  def initialize(directory: nil, authenticated_identifier: nil)
12
16
  @directory = directory
13
17
  @authenticated_identifier = authenticated_identifier
@@ -15,11 +19,17 @@ module Soar
15
19
  @identity_registry = Soar::Registry::Identity.new(identity_provider)
16
20
  end
17
21
 
22
+ ##
23
+ # @return uuid [String]
24
+ ##
18
25
  def uuid
19
- attributes = @identity_registry.get_attributes(@authenticated_identifier)
20
- attributes[@directory.index[0]]
26
+ attributes = @identity_registry.get_identifiers(@authenticated_identifier)
27
+ attributes[0]
21
28
  end
22
29
 
30
+ ##
31
+ # @return role [String]
32
+ ##
23
33
  def role
24
34
  "staff"
25
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar-authentication-identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Mulder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: soar-registry-identity
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.0.1
22
+ version: 3.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.0.1
32
+ version: 3.0.2
33
33
  description:
34
34
  email:
35
35
  - charles.mulder@hetzner.co.za