ibrain-auth 0.2.0 → 0.2.1
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 +1 -2
- data/app/graphql/ibrain/auth/types/input/sign_in_input.rb +14 -0
- data/app/graphql/ibrain/auth/types/{attributes → input}/sign_up_input.rb +1 -1
- data/lib/generators/ibrain/auth/install/templates/config/initializers/ibrain_auth.rb.tt +4 -1
- data/lib/ibrain/auth/version.rb +2 -2
- data/lib/ibrain/auth_configuration.rb +4 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d25f3bfd1d29801c8b5673f6103149f6202d21d522a1b65175ebf9f59334fb58
|
4
|
+
data.tar.gz: 0a8f9c8c3cd38bcb6a72a329f421e5c291f0d7db7cf020b253928c9427ca9c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dac3e301b88e1e368e2f346e79fb10a74f15fd36170172a2324f14181c981a67faa6205363271dcd5146049d63b1d8eef36e640523cfb7ee397e8c2f88c21a9
|
7
|
+
data.tar.gz: 40a6744264df1133f5ce8efdd0f16f39938f9c22aa7a28e6cbed35ed6a713d9d55620a416fadbd41a4dbc287a0776ca60b28fb607f1583c67584868723eff5f3
|
@@ -6,8 +6,7 @@ module Ibrain::Auth::Mutations
|
|
6
6
|
field :token, String, null: true
|
7
7
|
field :result, Boolean, null: true
|
8
8
|
|
9
|
-
argument :
|
10
|
-
argument :password, String, description: 'Password', required: true
|
9
|
+
argument :auth, Ibrain::Auth::Config.sign_in_input, required: true
|
11
10
|
argument :device_token, String, description: 'Device token for notification', required: false
|
12
11
|
|
13
12
|
def resolve(args)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ibrain
|
4
|
+
module Auth
|
5
|
+
module Types
|
6
|
+
module Input
|
7
|
+
class SignInInput < Ibrain::Types::BaseInputObject
|
8
|
+
argument :username, String, required: true
|
9
|
+
argument :password, String, required: true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -12,5 +12,8 @@ Ibrain::Auth.config do |config|
|
|
12
12
|
config.user_table_name = 'ibrain_users'
|
13
13
|
|
14
14
|
# sign_up graphql input
|
15
|
-
config.sign_up_input = Ibrain::Auth::Types::
|
15
|
+
config.sign_up_input = Ibrain::Auth::Types::Input::SignUpInput
|
16
|
+
|
17
|
+
# sign_in graphql input
|
18
|
+
config.sign_up_input = Ibrain::Auth::Types::Input::SignInInput
|
16
19
|
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.1'
|
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.1.0'
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.ibrain_auth_gem_version
|
@@ -13,6 +13,9 @@ module Ibrain
|
|
13
13
|
preference :user_table_name, :string, default: 'ibrain_users'
|
14
14
|
|
15
15
|
# sign_up input
|
16
|
-
preference :sign_up_input, :class, default: Ibrain::Auth::Types::
|
16
|
+
preference :sign_up_input, :class, default: Ibrain::Auth::Types::Input::SignUpInput
|
17
|
+
|
18
|
+
# sign_in input
|
19
|
+
preference :sign_in_input, :class, default: Ibrain::Auth::Types::Input::SignInInput
|
17
20
|
end
|
18
21
|
end
|
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.2.
|
4
|
+
version: 0.2.1
|
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-
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -135,7 +135,8 @@ files:
|
|
135
135
|
- app/graphql/ibrain/auth/mutations/sign_up_mutation.rb
|
136
136
|
- app/graphql/ibrain/auth/mutations/sso_sign_in_mutation.rb
|
137
137
|
- app/graphql/ibrain/auth/mutations/sso_sign_up_mutation.rb
|
138
|
-
- app/graphql/ibrain/auth/types/
|
138
|
+
- app/graphql/ibrain/auth/types/input/sign_in_input.rb
|
139
|
+
- app/graphql/ibrain/auth/types/input/sign_up_input.rb
|
139
140
|
- app/models/ibrain/auth/user.rb
|
140
141
|
- app/repositories/auth_repository.rb
|
141
142
|
- config/initializers/devise.rb
|
@@ -178,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
179
|
- !ruby/object:Gem::Version
|
179
180
|
version: '0'
|
180
181
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
182
|
+
rubygems_version: 3.2.22
|
182
183
|
signing_key:
|
183
184
|
specification_version: 4
|
184
185
|
summary: Its Auth is an sso authen gem for Ruby on Rails.
|