ibrain-auth 0.1.5 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30ccc8647d90b04b385f7bb63e24dbdecb1365d6c3db4a4bb187a19b7ab476c3
4
- data.tar.gz: 25265497ddf2b02cb26b23c1d509749a54947356cb37a7c2179f1cf68efa5639
3
+ metadata.gz: b222c67c324dc96e4dce92bc70808174bd2cd6367de3429f0029a845f24775c4
4
+ data.tar.gz: 135f08c796212da1f9db7271e4f3b37ca7ac059b07b38809d0590da62765c83d
5
5
  SHA512:
6
- metadata.gz: 9df833ba495a2139dd9b23f6012ca73ff040e2b4cfcaf7f03efa0dd3be78310bacb1c9e6d88800762c39c053c905bbc9ad4095a3622d8497f2bc867c114b1dc6
7
- data.tar.gz: ca80d2bb38a7a63247cda64558876af54869a100025261b36eafc8ab93f9888971935fca14400aede6fc9ae8a649bedf6bdf994838ec267c22ca2fde415fd24a
6
+ metadata.gz: 03355febdc2385a78c60600556c3dd0790b8c1043f367026e017154d7d3be6eca0d81b54ec5ef037d276a275028f76eada7ab156c0ff6f373f289accb346097f
7
+ data.tar.gz: 89c527e08ef0483f4aa93d477ffbc73e5f29b88c7fd19cd08a87e50a5eb4b8456c834552c9936b0b65328e30508c157acfe0ed782f866665198a8fa82ae514ce
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibrain::Auth::Mutations
4
- class SignInMutation < BaseMutation
4
+ class SsoSignInMutation < BaseMutation
5
5
  field :user, Types::Objects::UserType, null: true
6
6
  field :token, String, null: true
7
7
  field :result, Boolean, null: true
@@ -17,7 +17,7 @@ module Ibrain
17
17
  # for hasura
18
18
  hasura_keys = {
19
19
  'https://hasura.io/jwt/claims': {
20
- 'x-hasura-allowed-roles': [role],
20
+ 'x-hasura-allowed-roles': Ibrain.user_class.roles.keys,
21
21
  'x-hasura-default-role': role,
22
22
  'x-hasura-user-id': id.to_s
23
23
  }
@@ -4,14 +4,14 @@ module Ibrain
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Auth
7
- VERSION = '0.1.5'
7
+ VERSION = '0.1.9'
8
8
 
9
9
  def self.ibrain_auth_version
10
10
  VERSION
11
11
  end
12
12
 
13
13
  def self.previous_ibrain_auth_minor_version
14
- '0.1.4'
14
+ '0.1.8'
15
15
  end
16
16
 
17
17
  def self.ibrain_auth_gem_version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibrain-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise