osso 0.0.3.19 → 0.0.3.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/osso/graphql/mutations.rb +0 -1
- data/lib/osso/graphql/mutations/update_app_config.rb +1 -2
- data/lib/osso/graphql/resolvers/base_resolver.rb +4 -0
- data/lib/osso/graphql/resolvers/enterprise_accounts.rb +1 -1
- data/lib/osso/models/oauth_client.rb +2 -2
- data/lib/osso/routes/admin.rb +7 -1
- data/lib/osso/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc22e6537d35ba1c6a42ba2c329aa4fdd3d311b07734bc40e708048599aec6b
|
4
|
+
data.tar.gz: 0bcad162c393cc2f37087ecdf68f22df760d78e669af60e4fdd23ece1fd4778c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a0b1a2444ab27bcf9b47afe8bcfac939a3e574bda9c423ffb02b1d657d9c737291adac011a2a4b3d003676932d81b2c4c11931302eb92b367dd6b1839ddc58b
|
7
|
+
data.tar.gz: d3f1a44eb09376a2abd4dee264a2efcf8bd57cd28d24854d32e578fbb85baf0837014ae54fe4cd4c5586718c51804a5923635df6cb1a384fe7a153c4546d0051
|
data/Gemfile.lock
CHANGED
@@ -10,14 +10,13 @@ module Osso
|
|
10
10
|
argument :logo_url, String, required: false
|
11
11
|
argument :contact_email, String, required: false
|
12
12
|
|
13
|
-
|
14
13
|
field :app_config, Types::AppConfig, null: true
|
15
14
|
field :errors, [String], null: false
|
16
15
|
|
17
16
|
def resolve(**args)
|
18
17
|
app_config = Osso::Models::AppConfig.find
|
19
18
|
return response_data(app_config: app_config) if app_config.update(**args)
|
20
|
-
|
19
|
+
|
21
20
|
response_error(errors: e)
|
22
21
|
end
|
23
22
|
|
@@ -7,7 +7,7 @@ module Osso
|
|
7
7
|
type Types::EnterpriseAccount.connection_type, null: true
|
8
8
|
|
9
9
|
def resolve(sort_column: nil, sort_order: nil)
|
10
|
-
return Array(Osso::Models::EnterpriseAccount.find_by(domain:
|
10
|
+
return Array(Osso::Models::EnterpriseAccount.find_by(domain: context_domain)) unless internal_authorized?
|
11
11
|
|
12
12
|
accounts = Osso::Models::EnterpriseAccount
|
13
13
|
|
data/lib/osso/routes/admin.rb
CHANGED
@@ -13,6 +13,12 @@ module Osso
|
|
13
13
|
end
|
14
14
|
|
15
15
|
namespace '/admin' do
|
16
|
+
get '/login' do
|
17
|
+
token_protected!
|
18
|
+
|
19
|
+
erb :admin
|
20
|
+
end
|
21
|
+
|
16
22
|
get '' do
|
17
23
|
internal_protected!
|
18
24
|
|
@@ -20,7 +26,7 @@ module Osso
|
|
20
26
|
end
|
21
27
|
|
22
28
|
get '/enterprise' do
|
23
|
-
|
29
|
+
token_protected!
|
24
30
|
|
25
31
|
erb :admin
|
26
32
|
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.3.
|
4
|
+
version: 0.0.3.20
|
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-08-
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|