phcdevworks_accounts_auth0 1.1.5b → 2.0.0b

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: c4e9a73f87b1cb4e1981bc2ad11c4101aea7bca5039ae5957c89d89678edbc81
4
- data.tar.gz: b7a81f30bd8597040500e9c91b0f3bd1ebdbf6ad3963ad3c28535dba3036abd1
3
+ metadata.gz: 7bd470569e5914b2b7aac61f15f16ac78ccdcd44d6e857bc7483458f975927b8
4
+ data.tar.gz: c736dfdab23afbdbdcf90df3a19319ec1acdfb074f1d090335164ba9c7a0bf7c
5
5
  SHA512:
6
- metadata.gz: 5b58cf2fbf9bad93db4014288c7b9b8cb06ef05dd8cb4bbcbc66b587d227741f1e67dead46fdd4390b1a9883da98b377d4bd44b0b2f0fb7f733f43d1e8b67dfa
7
- data.tar.gz: 06c7e81e60b20d197810b992b4fe50a588b3b314b66c5480c55550559c2fc5654478005199d4becf32d4dcc3f61219862da78382927eadb4885c884f4251a6a1
6
+ metadata.gz: 62244ef6c1993d5f353d9f13ab83f5af3969a44ded7c63645dda662d008eb316e55bfc49fb31c14ddfa1f620b6347faa0fd1ad151c3712a60a75ff1dbaf00c1d
7
+ data.tar.gz: f41cfb86fef39896b452044d2def0be43b24f1f6b03c38d3a367e7bb10be93ab98ad75024e8a77e1ff3a8dff34f4d8a8fd55472a46a38bdf1a187cfcf1038eb8
@@ -1,9 +1,9 @@
1
- module PhcdevworksAccountsAuth0
1
+ module PhcdevworksAccountsAuth0
2
2
  class Auth::HandlerController < ApplicationController
3
3
 
4
4
  def callback
5
- info = request.env['omniauth.auth']
6
- session[:user_info] = info['extra']['raw_info']
5
+ auth_info = request.env["omniauth.auth"]
6
+ session[:userinfo] = auth_info["extra"]["raw_info"]
7
7
  redirect_to main_app.root_path
8
8
  end
9
9
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  def logout_url
24
24
  request_params = {
25
- returnTo: root_url,
25
+ returnTo: main_app.root_url,
26
26
  client_id: Rails.application.config.auth0["auth0_client_id"]
27
27
  }
28
28
  URI::HTTPS.build(host: AUTH0_CONFIG["auth0_domain"], path: "/v2/logout", query: request_params.to_query).to_s
@@ -9,6 +9,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
9
9
  callback_path: "/auth/callback",
10
10
  authorize_params: {
11
11
  scope: "openid profile"
12
+ #connection: "google-oauth2"
12
13
  }
13
14
  )
14
15
  end
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  PhcdevworksAccountsAuth0::Engine.routes.draw do
2
2
 
3
3
  # PHCDEVONE - User Routes
4
- get "user/dashboard" => 'user/pages#dashboard'
5
- get "user/profile" => 'user/pages#profile'
4
+ get "user/dashboard" => "user/pages#dashboard"
5
+ get "user/profile" => "user/pages#profile"
6
6
 
7
7
  # PHCDEVONE - Auth Routes
8
8
  get "/auth/callback" => "auth/handler#callback"
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsAuth0
2
- VERSION = "1.1.5b"
2
+ VERSION = "2.0.0b"
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.5b
4
+ version: 2.0.0b
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-02 00:00:00.000000000 Z
12
+ date: 2023-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails