ibrain-auth 0.2.1 → 0.2.2
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 +4 -4
- data/app/graphql/ibrain/auth/mutations/sign_in_mutation.rb +3 -1
- data/app/graphql/ibrain/auth/mutations/sign_up_mutation.rb +3 -1
- data/app/graphql/ibrain/auth/mutations/sso_sign_in_mutation.rb +3 -1
- data/app/graphql/ibrain/auth/mutations/sso_sign_up_mutation.rb +3 -1
- data/app/repositories/auth_repository.rb +3 -3
- data/lib/ibrain/auth/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f31c4ced9652dfdb9fd77c5251d6e03588b0fd2fe2a203b7d0f7e53cc016914a
|
|
4
|
+
data.tar.gz: 5c9604e3a8e9b7a726e801edb2f886a88df74b81d4efa92989eeb771ab41ea63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 390ae3ba90d81af9b8f4d9b74c88a03c72d1cfc3883f670d80aacc14b84dee336c1e47fd48a621ae2a53cccafbd3541b963587551ca2cbbce0a73762bee68fc2
|
|
7
|
+
data.tar.gz: 28fa9b2bddc6f1e0f2b5f88d6f70efdd3ce3c895e68a2cadc7c8912f3c7db9ad37d127f9fdad322493111f5e016fe04d29a62272366f2373a155ef04161f8b9b
|
|
@@ -45,7 +45,9 @@ module Ibrain::Auth::Mutations
|
|
|
45
45
|
private
|
|
46
46
|
|
|
47
47
|
def normalize_params(args)
|
|
48
|
-
ActionController::Parameters.new(
|
|
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(
|
|
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.
|
|
53
|
+
params.permit(permitted_attributes)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def manual_params
|
|
57
|
-
params.
|
|
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
|
data/lib/ibrain/auth/version.rb
CHANGED
|
@@ -4,14 +4,14 @@ module Ibrain
|
|
|
4
4
|
# frozen_string_literal: true
|
|
5
5
|
|
|
6
6
|
module Auth
|
|
7
|
-
VERSION = '0.2.
|
|
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
|
|
14
|
+
'0.2.1'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def self.ibrain_auth_gem_version
|