phcdevworks_accounts_auth0 1.1.1b → 1.1.2b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/config/initializers/auth0.rb +10 -10
- data/lib/phcdevworks_accounts_auth0/engine.rb +17 -3
- data/lib/phcdevworks_accounts_auth0/version.rb +1 -1
- metadata +1 -2
- data/config/auth0.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eb5fc3ab1f06ad9ad83af29c76525ea875cf90d522a3e74fa511263961cbf5c
|
4
|
+
data.tar.gz: 7c57b1645d8d524419d070d03deb808dc2f8844e36e7ca9402c635644ea3d9b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
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
|
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.
|
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"] %>
|