osso 0.0.4 → 0.0.5.pre.alpha

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: 944f6bc6e008f62881aae3d160c28d00a32eabb2440a3fa53d2987253b6f41ad
4
- data.tar.gz: bcc00cb690a234be7bddecea1d8ff71c8bb31c3b0ddd19446db6945e7284e015
3
+ metadata.gz: f0350490feb43457e4c6ed0a230f62c802892309fab6d5b5f720e93930653443
4
+ data.tar.gz: 1e3b77e49d750bb436324f49eeac8c2e02e958f52206e9705b8ce8ca937f5dba
5
5
  SHA512:
6
- metadata.gz: 4a8bfeac2fc1b09ddf9e324c33d65038dc6044a9d3ec1edf5432d02e56e3fa4a8f9240942c4dedad24c89d2d20f03a871e9588a17d53aa2acb8f5bdb2691a5e6
7
- data.tar.gz: afeb1f84b915cb97792333b2526e5576d94a9b60c6145e40d88932c96c6a57a4268d29fa25300108c695a1d32b6dde06aca8014ab6c218c0f93e6da33beafd62
6
+ metadata.gz: 9e9326d61c7ba8dbfca73d41c6d49dae57aa2dbee791fa2149dca21b60c3bca87025bcde10cec65e7b167bd14b0ed40ae9dc6a8ab41e76577569e21d5458ed40
7
+ data.tar.gz: 2a8f8bae8ae5c58258f9be18ecbe1b573d6a3a4b420d681ad7c15e658a456088bf9884b21925235ad1ce2ef815a63059a137a72206c995b51038deb3f63dc0bd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osso (0.0.4)
4
+ osso (0.0.5.pre.alpha)
5
5
  activesupport (>= 6.0.3.2)
6
6
  graphql
7
7
  jwt
@@ -0,0 +1,28 @@
1
+ class AddGoogleToIdentityProviderServiceEnum < ActiveRecord::Migration[6.0]
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ execute <<-SQL
6
+ ALTER TYPE identity_provider_service ADD VALUE 'GOOGLE';
7
+ SQL
8
+ end
9
+
10
+ def down
11
+ execute <<~SQL
12
+ CREATE TYPE identity_provider_service_new AS ENUM ('AZURE', 'OKTA', 'ONELOGIN');
13
+
14
+ -- Remove values that won't be compatible with new definition
15
+ DELETE FROM identity_providers WHERE service = 'GOOGLE';
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,7 +16,7 @@ module Osso
16
16
  'Mutation error',
17
17
  extensions: {
18
18
  'errors' => field_errors(errors),
19
- }
19
+ },
20
20
  )
21
21
  end
22
22
 
@@ -16,7 +16,7 @@ module Osso
16
16
  provider = identity_provider(**args)
17
17
 
18
18
  return response_data(identity_provider: provider) if provider.update(args)
19
-
19
+
20
20
  response_error(provider.errors)
21
21
  end
22
22
 
@@ -7,6 +7,7 @@ module Osso
7
7
  value('AZURE', 'Microsoft Azure Identity Provider', value: 'AZURE')
8
8
  value('OKTA', 'Okta Identity Provider', value: 'OKTA')
9
9
  value('ONELOGIN', 'OneLogin Identity Provider', value: 'ONELOGIN')
10
+ value('GOOGLE', 'Google SAML Identity Provider', value: 'GOOGLE')
10
11
  end
11
12
  end
12
13
  end
@@ -69,7 +69,6 @@ module Osso
69
69
  else
70
70
  OpenSSL::X509::Certificate.new([PEM_HEADER, sso_cert, PEM_FOOTER].join)
71
71
  end
72
-
73
72
  rescue OpenSSL::X509::CertificateError
74
73
  errors.add(:sso_cert, 'x509 Certificate is malformed')
75
74
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osso
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5-alpha'
5
5
  end
@@ -35,7 +35,7 @@ describe Osso::Models::IdentityProvider do
35
35
  )
36
36
  end
37
37
  end
38
-
38
+
39
39
  describe '#validate_sso_cert' do
40
40
  it 'rejects an invalid cert' do
41
41
  subject.update(sso_cert: 'bad-cert')
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
4
+ version: 0.0.5.pre.alpha
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-14 00:00:00.000000000 Z
11
+ date: 2020-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -272,6 +272,7 @@ files:
272
272
  - lib/osso/db/migrate/20200723162228_drop_unneeded_tables.rb
273
273
  - lib/osso/db/migrate/20200826201852_create_app_config.rb
274
274
  - lib/osso/db/migrate/20200913154919_add_one_login_to_identity_provider_service_enum.rb
275
+ - lib/osso/db/migrate/20200916125543_add_google_to_identity_provider_service_enum.rb
275
276
  - lib/osso/graphql/.DS_Store
276
277
  - lib/osso/graphql/mutation.rb
277
278
  - lib/osso/graphql/mutations.rb
@@ -373,9 +374,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
373
374
  version: 2.3.0
374
375
  required_rubygems_version: !ruby/object:Gem::Requirement
375
376
  requirements:
376
- - - ">="
377
+ - - ">"
377
378
  - !ruby/object:Gem::Version
378
- version: '0'
379
+ version: 1.3.1
379
380
  requirements: []
380
381
  rubygems_version: 3.0.3
381
382
  signing_key: