ibrain-auth 0.2.0 → 0.2.1

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: c55531d53a9d3ae38c32c05a522325c7998788d2c1afa99be87fd152fb87c500
4
- data.tar.gz: 52bc3f40ffab1748a6597219b6f7c752e6a984c427c6f969376876e600e55f7b
3
+ metadata.gz: d25f3bfd1d29801c8b5673f6103149f6202d21d522a1b65175ebf9f59334fb58
4
+ data.tar.gz: 0a8f9c8c3cd38bcb6a72a329f421e5c291f0d7db7cf020b253928c9427ca9c81
5
5
  SHA512:
6
- metadata.gz: 79df30aa4fcffcb37dd98e2f61e38b0ee638d902d8fab4a4024d56491a8011e7314b4bc0b62c8ff602313cfd8c8d1d50856a86f780f4b5b88ced20917880f586
7
- data.tar.gz: 18aa083ae454684f47c6ce420bc58a34e9c028f1177a699ee277c2a28a12d83281ad01221d7e8aa6da44cc29aff8bb0b05c671d3164a8292f11c92229bdee560
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 :username, String, description: 'Username', required: true
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
@@ -3,7 +3,7 @@
3
3
  module Ibrain
4
4
  module Auth
5
5
  module Types
6
- module Attributes
6
+ module Input
7
7
  class SignUpInput < Ibrain::Types::BaseInputObject
8
8
  argument :first_name, String, required: false
9
9
  argument :last_name, String, required: false
@@ -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::Attributes::SignUpInput
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
@@ -4,14 +4,14 @@ module Ibrain
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Auth
7
- VERSION = '0.2.0'
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.9'
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::Attributes::SignUpInput
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.0
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-02-25 00:00:00.000000000 Z
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/attributes/sign_up_input.rb
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.0.9
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.