phcdevworks_accounts_auth0 1.1.0b → 1.1.1b

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: 69a9616dadeb8c94a4057cc67028f5d27801765179b609b8163bec25cb2ff9ec
4
- data.tar.gz: c2c3c0b4e5784977f3c9f25d6130ed39cf685b6301d86e25e67ac43532f1662a
3
+ metadata.gz: 1e2cca1ac270b236262cc7b69f6b9f47bfc3866a35a68f529e488d5351441619
4
+ data.tar.gz: 5f6515ddb37e9cc8807bb4cfec3ce00ea11540793175fa8c223c658811a0e539
5
5
  SHA512:
6
- metadata.gz: e3c807bcda05129ab1372b02118982eb0a4e080a12a25937bfed44ebbdbb472fd862325fb638e0afaf6c0e13d8f8103d160e61b808af76e777d2623d76f758a6
7
- data.tar.gz: ca5bd864f19b0fa97e7026f68c28769c6f1a5d4822dde02a9ee8297b7d7e3abcef655009e16e4d9c3f2f5579531ccdee0f629ae0966b0de406b8bfffa4409b56
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
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsAuth0
2
- VERSION = "1.1.0b"
2
+ VERSION = "1.1.1b"
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.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