osso 0.1.1 → 0.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59118bc5190af82cb537d0e2bd6446651382fe049554a9ec284c10d227a8e2bc
|
4
|
+
data.tar.gz: 6388744bb74e905ac5c742aba1062edf6f9d2b518bc7484dc017286632ceb317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a14dd7a884f56ce1a420ee85bd04690f933538f9c5a9cad5c89a925f955130e27d29b6007e9670e9252f445d8fc6d104f97a80394ada11827accce8334b2d449
|
7
|
+
data.tar.gz: b9168f801d70b7d78cb7c4495a69a702fe5ca05689eb093442396db46f6877c935f621907bfddea4ad5770b220c135bb4f0f3620ff0e2c2d8e790402eb268c46
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
osso (0.1.
|
4
|
+
osso (0.1.2)
|
5
5
|
activesupport (>= 6.0.3.2)
|
6
6
|
bcrypt (~> 3.1.13)
|
7
7
|
graphql
|
@@ -52,10 +52,10 @@ GEM
|
|
52
52
|
concurrent-ruby (1.1.8)
|
53
53
|
crack (0.4.5)
|
54
54
|
rexml
|
55
|
-
database_cleaner (
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
database_cleaner-active_record (2.0.0)
|
56
|
+
activerecord (>= 5.a)
|
57
|
+
database_cleaner-core (~> 2.0.0)
|
58
|
+
database_cleaner-core (2.0.0)
|
59
59
|
diff-lcs (1.4.4)
|
60
60
|
docile (1.3.5)
|
61
61
|
factory_bot (6.1.0)
|
@@ -137,7 +137,7 @@ GEM
|
|
137
137
|
diff-lcs (>= 1.2.0, < 2.0)
|
138
138
|
rspec-support (~> 3.10.0)
|
139
139
|
rspec-support (3.10.1)
|
140
|
-
rubocop (1.
|
140
|
+
rubocop (1.9.0)
|
141
141
|
parallel (~> 1.10)
|
142
142
|
parser (>= 3.0.0.0)
|
143
143
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -181,7 +181,7 @@ GEM
|
|
181
181
|
tzinfo (2.0.4)
|
182
182
|
concurrent-ruby (~> 1.0)
|
183
183
|
unicode-display_width (2.0.0)
|
184
|
-
webmock (3.11.
|
184
|
+
webmock (3.11.2)
|
185
185
|
addressable (>= 2.3.6)
|
186
186
|
crack (>= 0.3.2)
|
187
187
|
hashdiff (>= 0.4.0, < 2.0.0)
|
data/db/schema.rb
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
# of editing this file, please use the migrations feature of Active Record to
|
3
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
# This file is the source Rails uses to define your schema when running `rails
|
6
|
-
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
7
|
# be faster and is potentially less error prone than running all of your
|
8
8
|
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
9
|
# migrations use external dependencies or application code.
|
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: 2021_02_01_220556) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "citext"
|
@@ -57,7 +57,7 @@ ActiveRecord::Schema.define(version: 2020_11_25_143501) do
|
|
57
57
|
t.citext "email", null: false
|
58
58
|
t.integer "status_id", default: 1, null: false
|
59
59
|
t.string "role", default: "admin", null: false
|
60
|
-
t.
|
60
|
+
t.uuid "oauth_client_id"
|
61
61
|
t.index ["email"], name: "index_accounts_on_email", unique: true, where: "(status_id = ANY (ARRAY[1, 2]))"
|
62
62
|
t.index ["oauth_client_id"], name: "index_accounts_on_oauth_client_id"
|
63
63
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class AddGenericSamlToProviderServiceEnum < ActiveRecord::Migration[6.1]
|
2
|
+
disable_ddl_transaction!
|
3
|
+
|
4
|
+
def up
|
5
|
+
execute <<-SQL
|
6
|
+
ALTER TYPE identity_provider_service ADD VALUE 'OTHER';
|
7
|
+
SQL
|
8
|
+
end
|
9
|
+
|
10
|
+
def down
|
11
|
+
execute <<~SQL
|
12
|
+
CREATE TYPE identity_provider_service_new AS ENUM ('AZURE', 'OKTA', 'ONELOGIN', 'GOOGLE', 'PING', 'SALESFORCE');
|
13
|
+
|
14
|
+
-- Remove values that won't be compatible with new definition
|
15
|
+
DELETE FROM identity_providers WHERE service = 'OTHER';
|
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
|
@@ -8,6 +8,7 @@ module Osso
|
|
8
8
|
value('GOOGLE', 'Google SAML Identity Provider', value: 'GOOGLE')
|
9
9
|
value('OKTA', 'Okta Identity Provider', value: 'OKTA')
|
10
10
|
value('ONELOGIN', 'OneLogin Identity Provider', value: 'ONELOGIN')
|
11
|
+
value('OTHER', 'Generic SAML Identity Provider', value: 'OTHER')
|
11
12
|
value('PING', 'PingID Identity Provider', value: 'PING')
|
12
13
|
value('SALESFORCE', 'Salesforce Identity Provider', value: 'SALESFORCE')
|
13
14
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Bauch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -387,6 +387,7 @@ files:
|
|
387
387
|
- lib/osso/db/migrate/20201110190754_remove_oauth_client_id_from_enterprise_accounts.rb
|
388
388
|
- lib/osso/db/migrate/20201112160120_add_ping_to_identity_provider_service_enum.rb
|
389
389
|
- lib/osso/db/migrate/20201125143501_add_salesforce_to_provider_service_enum.rb
|
390
|
+
- lib/osso/db/migrate/20210201220556_add_generic_saml_to_provider_service_enum.rb
|
390
391
|
- lib/osso/error/account_configuration_error.rb
|
391
392
|
- lib/osso/error/error.rb
|
392
393
|
- lib/osso/error/missing_saml_attribute_error.rb
|