ibrain-auth 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74bd33792a6ef8724f03979a6e406af07449a8b72594133e682a96a51f140df1
4
- data.tar.gz: 6558efe617aa2776df974f8b46a9586926ca72fbb7a089387a48c027f8959b3f
3
+ metadata.gz: 6381e8988dfab56252a71fddac56b968fc2b8d937ebaa91630318abfad057f09
4
+ data.tar.gz: 60ec5dbee69620b48ddcfd798295c4df24dacd2646708668e8706c9679ad131c
5
5
  SHA512:
6
- metadata.gz: 3a64ebd0360935fbe739cc3bfbebb850991252e35bbe8e81ca9b7a05627bab4b8e58b20ca08d13451533fa0eaa46bb59aeb03bdd8445c73ec6917795767b3d05
7
- data.tar.gz: 0e33ffbb8ca3f23da1f0b266c15b576a6b3f27743259ad2b41be984d3de69ab0514556a5e1aed056c52803e851fa68086e020170eb6fea67f694105ba49373cc
6
+ metadata.gz: 4e86995cfe7f5d2cb7d1fc16b9b97ec835a04f76456e3be50c9b59e3ce941d61e5fbfcd944d259308d21067336b13a8a77c1654705405b304cb95108e0d801a8
7
+ data.tar.gz: 6713e1db2298017118515f435e02c4ffc369675a80e82b77a05f6f921a05b89d6f7104f060bb02b44f06bfb87f5e3450e470e19309c3bba501d0923f4a6efd08
@@ -3,6 +3,8 @@
3
3
  module Ibrain
4
4
  module Auth
5
5
  class User < Ibrain::Base
6
+ self.table_name = Ibrain::Auth::Config.user_table_name
7
+
6
8
  include Devise::JWT::RevocationStrategies::JTIMatcher
7
9
 
8
10
  devise :database_authenticatable, :registerable,
@@ -7,4 +7,7 @@ Ibrain::Auth.config do |config|
7
7
 
8
8
  # Can use RAILS_MASTER_KEY or something else
9
9
  config.jwt_secret_key = 'RAILS_MASTER_KEY'
10
+
11
+ # Set user table name for rails ORM
12
+ config.user_table_name = 'ibrain_users'
10
13
  end
@@ -4,7 +4,7 @@ module Ibrain
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Auth
7
- VERSION = '0.1.0'
7
+ VERSION = '0.1.1'
8
8
 
9
9
  def self.ibrain_auth_version
10
10
  VERSION
@@ -8,5 +8,8 @@ module Ibrain
8
8
 
9
9
  # JWT Secret key
10
10
  preference :jwt_secret_key, :string, default: nil
11
+
12
+ # JWT user table name
13
+ preference :user_table_name, :string, default: 'ibrain_users'
11
14
  end
12
15
  end
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van