osso 0.0.3.27 → 0.0.4

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
  SHA256:
3
- metadata.gz: 61667cd9c9821cbbd903bd5ea753dfb67338a801e442b5e7ce21d77e06e2ada6
4
- data.tar.gz: ef180637bd4da14905549a161e153e4a7b6b1dc9b9079d0e98952f7730e6d6ba
3
+ metadata.gz: 944f6bc6e008f62881aae3d160c28d00a32eabb2440a3fa53d2987253b6f41ad
4
+ data.tar.gz: bcc00cb690a234be7bddecea1d8ff71c8bb31c3b0ddd19446db6945e7284e015
5
5
  SHA512:
6
- metadata.gz: 59dde627b70d7f46a680dbf00ae260cd98613a679daaf14a2a08e7ce6aef7ab627ecf8b1ba8a459438b518f85e24b2db1e63375814c526f12733284fbbdc5a78
7
- data.tar.gz: '09a8f59725b4a61aad3a92e8a676377d798049da26951882903c40a8ab7e2945e153097d4e94d896dc601d1d1fc01f518d05adc58af141ce56bc4a12697f40ab'
6
+ metadata.gz: 4a8bfeac2fc1b09ddf9e324c33d65038dc6044a9d3ec1edf5432d02e56e3fa4a8f9240942c4dedad24c89d2d20f03a871e9588a17d53aa2acb8f5bdb2691a5e6
7
+ data.tar.gz: afeb1f84b915cb97792333b2526e5576d94a9b60c6145e40d88932c96c6a57a4268d29fa25300108c695a1d32b6dde06aca8014ab6c218c0f93e6da33beafd62
@@ -0,0 +1 @@
1
+ 2.6.6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osso (0.0.3.27)
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.1)
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
- backports (3.18.1)
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.1)
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.1)
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.9)
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.1)
80
+ omniauth-saml (1.10.2)
82
81
  omniauth (~> 1.3, >= 1.3.2)
83
- ruby-saml (~> 1.7)
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.14.0)
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.8.1)
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.8.1)
142
+ sinatra (2.1.0)
144
143
  mustermann (~> 1.0)
145
- rack (~> 2.0)
146
- rack-protection (= 2.0.8.1)
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.8.1)
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.8.1)
156
- sinatra (= 2.0.8.1)
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)
@@ -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: 2020_08_26_201852) do
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 'identity_provider_status' for column 'status'
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 change
3
- def up
4
- execute <<-SQL
5
- CREATE TYPE identity_provider_service AS ENUM ('OKTA', 'AZURE');
6
- SQL
7
- change_column :identity_providers, :service, :identity_provider_service
8
- end
9
-
10
- def down
11
- chnage_column :identity_providers, :service, :text
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: 'Osso::Models::AzureSamlProvider')
8
- value('OKTA', 'Okta Identity Provider', value: 'Osso::Models::OktaSamlProvider')
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osso
4
- VERSION = '0.0.3.27'
4
+ VERSION = '0.0.4'
5
5
  end
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.3.27
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-02 00:00:00.000000000 Z
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