ibrain-auth 0.2.1 → 0.2.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: d25f3bfd1d29801c8b5673f6103149f6202d21d522a1b65175ebf9f59334fb58
4
- data.tar.gz: 0a8f9c8c3cd38bcb6a72a329f421e5c291f0d7db7cf020b253928c9427ca9c81
3
+ metadata.gz: f31c4ced9652dfdb9fd77c5251d6e03588b0fd2fe2a203b7d0f7e53cc016914a
4
+ data.tar.gz: 5c9604e3a8e9b7a726e801edb2f886a88df74b81d4efa92989eeb771ab41ea63
5
5
  SHA512:
6
- metadata.gz: 7dac3e301b88e1e368e2f346e79fb10a74f15fd36170172a2324f14181c981a67faa6205363271dcd5146049d63b1d8eef36e640523cfb7ee397e8c2f88c21a9
7
- data.tar.gz: 40a6744264df1133f5ce8efdd0f16f39938f9c22aa7a28e6cbed35ed6a713d9d55620a416fadbd41a4dbc287a0776ca60b28fb607f1583c67584868723eff5f3
6
+ metadata.gz: 390ae3ba90d81af9b8f4d9b74c88a03c72d1cfc3883f670d80aacc14b84dee336c1e47fd48a621ae2a53cccafbd3541b963587551ca2cbbce0a73762bee68fc2
7
+ data.tar.gz: 28fa9b2bddc6f1e0f2b5f88d6f70efdd3ce3c895e68a2cadc7c8912f3c7db9ad37d127f9fdad322493111f5e016fe04d29a62272366f2373a155ef04161f8b9b
@@ -43,7 +43,9 @@ module Ibrain::Auth::Mutations
43
43
  private
44
44
 
45
45
  def normalize_params(args)
46
- ActionController::Parameters.new({ auth: args })
46
+ args[:auth].to_params
47
+ rescue StandardError
48
+ ActionController::Parameters.new({})
47
49
  end
48
50
 
49
51
  def auth_options
@@ -44,7 +44,9 @@ module Ibrain::Auth::Mutations
44
44
  private
45
45
 
46
46
  def normalize_params(args)
47
- ActionController::Parameters.new({ auth: args })
47
+ args[:user].to_params
48
+ rescue StandardError
49
+ ActionController::Parameters.new({})
48
50
  end
49
51
 
50
52
  def auth_options
@@ -45,7 +45,9 @@ module Ibrain::Auth::Mutations
45
45
  private
46
46
 
47
47
  def normalize_params(args)
48
- ActionController::Parameters.new({ auth: args })
48
+ ActionController::Parameters.new(args.as_json)
49
+ rescue StandardError
50
+ ActionController::Parameters.new({})
49
51
  end
50
52
 
51
53
  def auth_options
@@ -45,7 +45,9 @@ module Ibrain::Auth::Mutations
45
45
  private
46
46
 
47
47
  def normalize_params(args)
48
- ActionController::Parameters.new({ auth: args })
48
+ ActionController::Parameters.new(args.as_json)
49
+ rescue StandardError
50
+ ActionController::Parameters.new({})
49
51
  end
50
52
 
51
53
  def auth_options
@@ -50,11 +50,11 @@ class AuthRepository < Ibrain::BaseRepository
50
50
  end
51
51
 
52
52
  def normalize_params
53
- params.require(:auth).permit(permitted_attributes)
53
+ params.permit(permitted_attributes)
54
54
  end
55
55
 
56
56
  def manual_params
57
- params.require(:auth).permit(:username, :password)
57
+ params.permit(:username, :password)
58
58
  end
59
59
 
60
60
  def sso_verify
@@ -84,7 +84,7 @@ class AuthRepository < Ibrain::BaseRepository
84
84
  reset_password_token reset_password_sent_at
85
85
  remember_created_at sign_in_count uid jti
86
86
  current_sign_in_at last_sign_in_at current_sign_in_ip
87
- last_sign_in_ip role encrypted_password
87
+ last_sign_in_ip role encrypted_password id_token
88
88
  ]
89
89
  end
90
90
  end
@@ -4,14 +4,14 @@ module Ibrain
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Auth
7
- VERSION = '0.2.1'
7
+ VERSION = '0.2.2'
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.0'
14
+ '0.2.1'
15
15
  end
16
16
 
17
17
  def self.ibrain_auth_gem_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibrain-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van