phcdevworks_accounts_auth0 1.1.1b → 1.1.2b

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: 1e2cca1ac270b236262cc7b69f6b9f47bfc3866a35a68f529e488d5351441619
4
- data.tar.gz: 5f6515ddb37e9cc8807bb4cfec3ce00ea11540793175fa8c223c658811a0e539
3
+ metadata.gz: 1eb5fc3ab1f06ad9ad83af29c76525ea875cf90d522a3e74fa511263961cbf5c
4
+ data.tar.gz: 7c57b1645d8d524419d070d03deb808dc2f8844e36e7ca9402c635644ea3d9b0
5
5
  SHA512:
6
- metadata.gz: 13215caf4a3664ea823b71825511c7a1dc672601f2faedbe4220c312afdb88075deb682e7251410343da7bac96c037eaf32129d4a78b7b639dfee84f91fe71c7
7
- data.tar.gz: 85fe0771cd067217c4da61fb969e0445a761858d1a1a7a72321dc8dc682100c6336ead06335b1a5e3ee50cfd15207e8d4ff1820742c3d3e0e4eed9a681ff826a
6
+ metadata.gz: 07daf15993d38dd7b3b3760de0fce434c82b274c56ebcd6dc8b70ec653f7e6f7ae81ee3d35f02981002c6740628634976b774ccc384a7d907210d407a5fbf3fe
7
+ data.tar.gz: d95890cd20e3a4429bfd7df9a6b8621b2b541bd210dd890f397f4af1baaf2dbae62538c905182c0ac9d6fbc0b475dc5dcd3672144d53eabeeb22fd392d1a2fb9
data/README.md CHANGED
@@ -1,3 +1,10 @@
1
1
  # PHCDevworks - Accounts - Auth0
2
2
 
3
3
  PHCDevworks' Rails 7 engine simplifies user account management with secure and scalable Auth0 authentication. Customize and build better apps faster with our easy-to-use engine. Streamline your app development process and enhance security with PHCDevworks Opensource.
4
+
5
+ # Features
6
+
7
+ - Seamlessly plug into any Rails app for streamlined development
8
+ - Utilize secure Auth0 authentication for added protection
9
+ - Simple to install and configure for hassle-free integration
10
+ - Customize for your specific needs to enhance user experience and engagement
@@ -1,14 +1,14 @@
1
1
  AUTH0_CONFIG = Rails.application.config_for(:auth0)
2
2
 
3
3
  Rails.application.config.middleware.use OmniAuth::Builder do
4
- provider(
5
- :auth0,
6
- AUTH0_CONFIG['auth0_client_id'],
7
- AUTH0_CONFIG['auth0_client_secret'],
8
- AUTH0_CONFIG['auth0_domain'],
9
- callback_path: '/auth/callback',
10
- authorize_params: {
11
- scope: 'openid profile'
12
- }
13
- )
4
+ provider(
5
+ :auth0,
6
+ AUTH0_CONFIG['auth0_client_id'],
7
+ AUTH0_CONFIG['auth0_client_secret'],
8
+ AUTH0_CONFIG['auth0_domain'],
9
+ callback_path: '/auth/callback',
10
+ authorize_params: {
11
+ scope: 'openid profile'
12
+ }
13
+ )
14
14
  end
@@ -1,5 +1,19 @@
1
1
  module PhcdevworksAccountsAuth0
2
- class Engine < ::Rails::Engine
3
- isolate_namespace PhcdevworksAccountsAuth0
4
- end
2
+ class Engine < ::Rails::Engine
3
+
4
+ # PHCDEVONE - Add Requried Dependencies
5
+ require "omniauth-auth0"
6
+ require "omniauth-rails_csrf_protection"
7
+
8
+ # PHCDEVONE - Isolate Engine
9
+ isolate_namespace PhcdevworksAccountsAuth0
10
+
11
+ # PHCDEVONE - Rspec Generators
12
+ config.generators do |g|
13
+ g.test_framework :rspec
14
+ g.fixture_replacement :factory_bot
15
+ g.factory_bot dir: 'spec/factories'
16
+ end
17
+
18
+ end
5
19
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsAuth0
2
- VERSION = "1.1.1b"
2
+ VERSION = "1.1.2b"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_accounts_auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1b
4
+ version: 1.1.2b
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -137,7 +137,6 @@ files:
137
137
  - app/views/phcdevworks_accounts_auth0/auth/handler/logged_out.html.erb
138
138
  - app/views/phcdevworks_accounts_auth0/user/pages/dashboard.html.erb
139
139
  - app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb
140
- - config/auth0.yml
141
140
  - config/initializers/auth0.rb
142
141
  - config/routes.rb
143
142
  - lib/phcdevworks_accounts_auth0.rb
data/config/auth0.yml DELETED
@@ -1,14 +0,0 @@
1
- development:
2
- auth0_client_id: <%= ENV["PHC_DEV_AUTH0_CLIENT_ID"] %>
3
- auth0_client_secret: <%= ENV["PHC_DEV_AUTH0_CLIENT_SECRET"] %>
4
- auth0_domain: <%= ENV["PHC_DEV_AUTH0_DOMAIN"] %>
5
-
6
- test:
7
- auth0_client_id: <%= ENV["PHC_DEV_AUTH0_CLIENT_ID"] %>
8
- auth0_client_secret: <%= ENV["PHC_DEV_AUTH0_CLIENT_SECRET"] %>
9
- auth0_domain: <%= ENV["PHC_DEV_AUTH0_DOMAIN"] %>
10
-
11
- production:
12
- auth0_client_id: <%= ENV["PHC_DEV_AUTH0_CLIENT_ID"] %>
13
- auth0_client_secret: <%= ENV["PHC_DEV_AUTH0_CLIENT_SECRET"] %>
14
- auth0_domain: <%= ENV["PHC_DEV_AUTH0_DOMAIN"] %>