soar_idm 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/soar_idm/directory_provider.rb +36 -0
- data/lib/soar_idm/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a912d8f9c8ad083d3224c3ab55860a97b413f9
|
4
|
+
data.tar.gz: 6f700d779a87d38bf19dd2924d3aead7de30f8c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4b59521ca2de7ae341b0a9d1ea5d3c87903f00d74c94caa23626380b924c915df3607f59c2c6152600f37c83dff087835fdc62ca62f9172c868ec416ef64aa3
|
7
|
+
data.tar.gz: 78d67ef83fe57a67f9757bc3ba0dfa3ad8c885f033ae4a82fe9fb739d6e597dcf20ae9a73ad0683a6c5b71d82c7a4847f9913d4ab4545e830c7a3e0523f30b9f
|
data/README.md
CHANGED
@@ -29,6 +29,10 @@ If more than one identity is found for the entity identifier:
|
|
29
29
|
If no identities are found for the entity identifier:
|
30
30
|
- Identities not found for identifier entity_identifier
|
31
31
|
|
32
|
+
## Directory
|
33
|
+
|
34
|
+
This IDM specification recommends an API for a source of truth directory that provides the IDM with the necessary data to which to apply a rule set in pursuit of identifier / role / attribute mapping. Please see the SoarIdm::DirectoryProvider for more detail.
|
35
|
+
|
32
36
|
## Installation
|
33
37
|
|
34
38
|
Add this line to your application's Gemfile:
|
@@ -78,6 +82,7 @@ Over-ride the public and private methods at your own risk and at the risk of non
|
|
78
82
|
## Usage (client)
|
79
83
|
spec.add_development_dependency 'soar_idm'
|
80
84
|
bundle exec irb
|
85
|
+
require 'soar_idm/soar_idm'
|
81
86
|
|
82
87
|
In the examples that follow, @iut refers to 'implementation under test' a.k.a 'item under test'
|
83
88
|
Extend the {SoarIDM::IdmApi IDM API} class to create an identity registry.
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'uri'
|
2
|
+
require 'jsender'
|
3
|
+
|
4
|
+
module SoarIdm
|
5
|
+
class DirectoryProvider
|
6
|
+
include Jsender
|
7
|
+
|
8
|
+
def bootstrap(configuration)
|
9
|
+
fail('Not implemented')
|
10
|
+
end
|
11
|
+
|
12
|
+
def bootstrapped?
|
13
|
+
success_data({ 'bootstrap' => false })
|
14
|
+
end
|
15
|
+
|
16
|
+
def uri
|
17
|
+
success_data({ 'uri' => URI("http://localhost").to_s })
|
18
|
+
end
|
19
|
+
|
20
|
+
def authenticate(credentials)
|
21
|
+
fail('Not implemented')
|
22
|
+
end
|
23
|
+
|
24
|
+
def connect
|
25
|
+
fail('Not implemented')
|
26
|
+
end
|
27
|
+
|
28
|
+
def connected?
|
29
|
+
success_data({ 'connected' => false })
|
30
|
+
end
|
31
|
+
|
32
|
+
def ready?
|
33
|
+
success_data({ 'ready' => false })
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/lib/soar_idm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_idm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernst van Graan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- LICENSE.txt
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
|
+
- lib/soar_idm/directory_provider.rb
|
95
96
|
- lib/soar_idm/soar_idm.rb
|
96
97
|
- lib/soar_idm/version.rb
|
97
98
|
- soar_idm.gemspec
|