osso 0.0.3.27 → 0.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/.ruby-version +1 -0
- data/Gemfile.lock +16 -18
- data/db/schema.rb +2 -2
- data/lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb +10 -14
- data/lib/osso/db/migrate/20200913154919_add_one_login_to_identity_provider_service_enum.rb +28 -0
- data/lib/osso/graphql/types/identity_provider.rb +0 -5
- data/lib/osso/graphql/types/identity_provider_service.rb +3 -2
- data/lib/osso/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 944f6bc6e008f62881aae3d160c28d00a32eabb2440a3fa53d2987253b6f41ad
|
4
|
+
data.tar.gz: bcc00cb690a234be7bddecea1d8ff71c8bb31c3b0ddd19446db6945e7284e015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8bfeac2fc1b09ddf9e324c33d65038dc6044a9d3ec1edf5432d02e56e3fa4a8f9240942c4dedad24c89d2d20f03a871e9588a17d53aa2acb8f5bdb2691a5e6
|
7
|
+
data.tar.gz: afeb1f84b915cb97792333b2526e5576d94a9b60c6145e40d88932c96c6a57a4268d29fa25300108c695a1d32b6dde06aca8014ab6c218c0f93e6da33beafd62
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.6
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
osso (0.0.
|
4
|
+
osso (0.0.4)
|
5
5
|
activesupport (>= 6.0.3.2)
|
6
6
|
graphql
|
7
7
|
jwt
|
@@ -31,14 +31,13 @@ GEM
|
|
31
31
|
zeitwerk (~> 2.2, >= 2.2.2)
|
32
32
|
addressable (2.7.0)
|
33
33
|
public_suffix (>= 2.0.2, < 5.0)
|
34
|
-
aes_key_wrap (1.0
|
34
|
+
aes_key_wrap (1.1.0)
|
35
35
|
annotate (3.1.1)
|
36
36
|
activerecord (>= 3.2, < 7.0)
|
37
37
|
rake (>= 10.4, < 14.0)
|
38
38
|
ast (2.4.1)
|
39
39
|
attr_required (1.0.1)
|
40
|
-
|
41
|
-
bindata (2.4.7)
|
40
|
+
bindata (2.4.8)
|
42
41
|
coderay (1.1.3)
|
43
42
|
concurrent-ruby (1.1.6)
|
44
43
|
crack (0.4.3)
|
@@ -53,7 +52,7 @@ GEM
|
|
53
52
|
activesupport (>= 5.0.0)
|
54
53
|
faker (2.13.0)
|
55
54
|
i18n (>= 1.6, < 2)
|
56
|
-
graphql (1.11.
|
55
|
+
graphql (1.11.4)
|
57
56
|
hashdiff (1.0.1)
|
58
57
|
hashie (4.1.0)
|
59
58
|
httpclient (2.8.3)
|
@@ -64,23 +63,23 @@ GEM
|
|
64
63
|
activesupport (>= 4.2)
|
65
64
|
aes_key_wrap
|
66
65
|
bindata
|
67
|
-
jwt (2.2.
|
66
|
+
jwt (2.2.2)
|
68
67
|
method_source (1.0.0)
|
69
68
|
mini_portile2 (2.4.0)
|
70
69
|
minitest (5.14.1)
|
71
70
|
multi_json (1.15.0)
|
72
71
|
mustermann (1.1.1)
|
73
72
|
ruby2_keywords (~> 0.0.1)
|
74
|
-
nokogiri (1.10.
|
73
|
+
nokogiri (1.10.10)
|
75
74
|
mini_portile2 (~> 2.4.0)
|
76
75
|
omniauth (1.9.1)
|
77
76
|
hashie (>= 3.4.6)
|
78
77
|
rack (>= 1.6.2, < 3)
|
79
78
|
omniauth-multi-provider (0.2.1)
|
80
79
|
omniauth
|
81
|
-
omniauth-saml (1.10.
|
80
|
+
omniauth-saml (1.10.2)
|
82
81
|
omniauth (~> 1.3, >= 1.3.2)
|
83
|
-
ruby-saml (~> 1.
|
82
|
+
ruby-saml (~> 1.9)
|
84
83
|
parallel (1.19.2)
|
85
84
|
parser (2.7.1.4)
|
86
85
|
ast (~> 2.4.1)
|
@@ -92,13 +91,13 @@ GEM
|
|
92
91
|
rack (2.2.3)
|
93
92
|
rack-contrib (2.2.0)
|
94
93
|
rack (~> 2.0)
|
95
|
-
rack-oauth2 (1.
|
94
|
+
rack-oauth2 (1.16.0)
|
96
95
|
activesupport
|
97
96
|
attr_required
|
98
97
|
httpclient
|
99
98
|
json-jwt (>= 1.11.0)
|
100
99
|
rack (>= 2.1.0)
|
101
|
-
rack-protection (2.0
|
100
|
+
rack-protection (2.1.0)
|
102
101
|
rack
|
103
102
|
rack-test (1.1.0)
|
104
103
|
rack (>= 1.0, < 3)
|
@@ -140,20 +139,19 @@ GEM
|
|
140
139
|
json (>= 1.8, < 3)
|
141
140
|
simplecov-html (~> 0.10.0)
|
142
141
|
simplecov-html (0.10.2)
|
143
|
-
sinatra (2.0
|
142
|
+
sinatra (2.1.0)
|
144
143
|
mustermann (~> 1.0)
|
145
|
-
rack (~> 2.
|
146
|
-
rack-protection (= 2.0
|
144
|
+
rack (~> 2.2)
|
145
|
+
rack-protection (= 2.1.0)
|
147
146
|
tilt (~> 2.0)
|
148
147
|
sinatra-activerecord (2.0.18)
|
149
148
|
activerecord (>= 4.1)
|
150
149
|
sinatra (>= 1.0)
|
151
|
-
sinatra-contrib (2.0
|
152
|
-
backports (>= 2.8.2)
|
150
|
+
sinatra-contrib (2.1.0)
|
153
151
|
multi_json
|
154
152
|
mustermann (~> 1.0)
|
155
|
-
rack-protection (= 2.0
|
156
|
-
sinatra (= 2.0
|
153
|
+
rack-protection (= 2.1.0)
|
154
|
+
sinatra (= 2.1.0)
|
157
155
|
tilt (~> 2.0)
|
158
156
|
thread_safe (0.3.6)
|
159
157
|
tilt (2.0.10)
|
data/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2020_09_13_154919) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "pgcrypto"
|
@@ -62,7 +62,7 @@ ActiveRecord::Schema.define(version: 2020_08_26_201852) do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
# Could not dump table "identity_providers" because of following StandardError
|
65
|
-
# Unknown type '
|
65
|
+
# Unknown type 'identity_provider_service' for column 'service'
|
66
66
|
|
67
67
|
create_table "oauth_clients", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
68
68
|
t.string "name", null: false
|
@@ -1,17 +1,13 @@
|
|
1
1
|
class AddIdentityProviderServiceEnum < ActiveRecord::Migration[6.0]
|
2
|
-
def
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
execute <<-SQL
|
13
|
-
DROP TYPE identity_provider_service;
|
14
|
-
SQL
|
15
|
-
end
|
2
|
+
def up
|
3
|
+
execute "CREATE TYPE identity_provider_service AS ENUM ('OKTA', 'AZURE');"
|
4
|
+
change_column :identity_providers, :service, 'identity_provider_service USING CAST(service as identity_provider_service)'
|
5
|
+
end
|
6
|
+
|
7
|
+
def down
|
8
|
+
chnage_column :identity_providers, :service, :text
|
9
|
+
execute <<-SQL
|
10
|
+
DROP TYPE identity_provider_service;
|
11
|
+
SQL
|
16
12
|
end
|
17
13
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class AddOneLoginToIdentityProviderServiceEnum < ActiveRecord::Migration[6.0]
|
2
|
+
disable_ddl_transaction!
|
3
|
+
|
4
|
+
def up
|
5
|
+
execute <<-SQL
|
6
|
+
ALTER TYPE identity_provider_service ADD VALUE 'ONELOGIN';
|
7
|
+
SQL
|
8
|
+
end
|
9
|
+
|
10
|
+
def down
|
11
|
+
execute <<~SQL
|
12
|
+
CREATE TYPE identity_provider_service_new AS ENUM ('AZURE', 'OKTA');
|
13
|
+
|
14
|
+
-- Remove values that won't be compatible with new definition
|
15
|
+
DELETE FROM identity_providers WHERE service = 'ONELOGIN';
|
16
|
+
|
17
|
+
-- Convert to new type, casting via text representation
|
18
|
+
ALTER TABLE identity_providers
|
19
|
+
ALTER COLUMN service TYPE identity_provider_service_new
|
20
|
+
USING (service::text::identity_provider_service_new);
|
21
|
+
|
22
|
+
-- and swap the types
|
23
|
+
DROP TYPE identity_provider_service;
|
24
|
+
|
25
|
+
ALTER TYPE identity_provider_service_new RENAME TO identity_provider_service;
|
26
|
+
SQL
|
27
|
+
end
|
28
|
+
end
|
@@ -16,11 +16,6 @@ module Osso
|
|
16
16
|
field :sso_url, String, null: true
|
17
17
|
field :sso_cert, String, null: true
|
18
18
|
field :status, Types::IdentityProviderStatus, null: false
|
19
|
-
field :documentation_pdf_url, String, null: true
|
20
|
-
|
21
|
-
def documentation_pdf_url
|
22
|
-
ENV['BASE_URL'] + '/identity_provider/documentation/' + @object.id
|
23
|
-
end
|
24
19
|
end
|
25
20
|
end
|
26
21
|
end
|
@@ -4,8 +4,9 @@ module Osso
|
|
4
4
|
module GraphQL
|
5
5
|
module Types
|
6
6
|
class IdentityProviderService < BaseEnum
|
7
|
-
value('AZURE', 'Microsoft Azure Identity Provider', value: '
|
8
|
-
value('OKTA', 'Okta Identity Provider', value: '
|
7
|
+
value('AZURE', 'Microsoft Azure Identity Provider', value: 'AZURE')
|
8
|
+
value('OKTA', 'Okta Identity Provider', value: 'OKTA')
|
9
|
+
value('ONELOGIN', 'OneLogin Identity Provider', value: 'ONELOGIN')
|
9
10
|
end
|
10
11
|
end
|
11
12
|
end
|
data/lib/osso/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Bauch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -238,6 +238,7 @@ files:
|
|
238
238
|
- ".gitignore"
|
239
239
|
- ".rspec"
|
240
240
|
- ".rubocop.yml"
|
241
|
+
- ".ruby-version"
|
241
242
|
- CODE_OF_CONDUCT.md
|
242
243
|
- Gemfile
|
243
244
|
- Gemfile.lock
|
@@ -270,6 +271,7 @@ files:
|
|
270
271
|
- lib/osso/db/migrate/20200723153750_add_missing_timestamps.rb
|
271
272
|
- lib/osso/db/migrate/20200723162228_drop_unneeded_tables.rb
|
272
273
|
- lib/osso/db/migrate/20200826201852_create_app_config.rb
|
274
|
+
- lib/osso/db/migrate/20200913154919_add_one_login_to_identity_provider_service_enum.rb
|
273
275
|
- lib/osso/graphql/.DS_Store
|
274
276
|
- lib/osso/graphql/mutation.rb
|
275
277
|
- lib/osso/graphql/mutations.rb
|