phcdevworks_accounts_auth0 1.1.0b → 1.1.2b

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: 69a9616dadeb8c94a4057cc67028f5d27801765179b609b8163bec25cb2ff9ec
4
- data.tar.gz: c2c3c0b4e5784977f3c9f25d6130ed39cf685b6301d86e25e67ac43532f1662a
3
+ metadata.gz: 1eb5fc3ab1f06ad9ad83af29c76525ea875cf90d522a3e74fa511263961cbf5c
4
+ data.tar.gz: 7c57b1645d8d524419d070d03deb808dc2f8844e36e7ca9402c635644ea3d9b0
5
5
  SHA512:
6
- metadata.gz: e3c807bcda05129ab1372b02118982eb0a4e080a12a25937bfed44ebbdbb472fd862325fb638e0afaf6c0e13d8f8103d160e61b808af76e777d2623d76f758a6
7
- data.tar.gz: ca5bd864f19b0fa97e7026f68c28769c6f1a5d4822dde02a9ee8297b7d7e3abcef655009e16e4d9c3f2f5579531ccdee0f629ae0966b0de406b8bfffa4409b56
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
@@ -0,0 +1,14 @@
1
+ AUTH0_CONFIG = Rails.application.config_for(:auth0)
2
+
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
+ )
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.0b"
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.0b
4
+ version: 1.1.2b
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -137,6 +137,7 @@ 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/initializers/auth0.rb
140
141
  - config/routes.rb
141
142
  - lib/phcdevworks_accounts_auth0.rb
142
143
  - lib/phcdevworks_accounts_auth0/engine.rb