phcdevworks_accounts_auth0 1.1.0b → 1.1.1b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/auth0.yml +14 -0
- data/config/initializers/auth0.rb +14 -0
- data/lib/phcdevworks_accounts_auth0/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e2cca1ac270b236262cc7b69f6b9f47bfc3866a35a68f529e488d5351441619
|
4
|
+
data.tar.gz: 5f6515ddb37e9cc8807bb4cfec3ce00ea11540793175fa8c223c658811a0e539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13215caf4a3664ea823b71825511c7a1dc672601f2faedbe4220c312afdb88075deb682e7251410343da7bac96c037eaf32129d4a78b7b639dfee84f91fe71c7
|
7
|
+
data.tar.gz: 85fe0771cd067217c4da61fb969e0445a761858d1a1a7a72321dc8dc682100c6336ead06335b1a5e3ee50cfd15207e8d4ff1820742c3d3e0e4eed9a681ff826a
|
data/config/auth0.yml
ADDED
@@ -0,0 +1,14 @@
|
|
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"] %>
|
@@ -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
|
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.1b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
@@ -137,6 +137,8 @@ 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
|
+
- config/initializers/auth0.rb
|
140
142
|
- config/routes.rb
|
141
143
|
- lib/phcdevworks_accounts_auth0.rb
|
142
144
|
- lib/phcdevworks_accounts_auth0/engine.rb
|