phcdevworks_accounts_auth0 1.1.5b → 2.0.0b
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bd470569e5914b2b7aac61f15f16ac78ccdcd44d6e857bc7483458f975927b8
|
4
|
+
data.tar.gz: c736dfdab23afbdbdcf90df3a19319ec1acdfb074f1d090335164ba9c7a0bf7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62244ef6c1993d5f353d9f13ab83f5af3969a44ded7c63645dda662d008eb316e55bfc49fb31c14ddfa1f620b6347faa0fd1ad151c3712a60a75ff1dbaf00c1d
|
7
|
+
data.tar.gz: f41cfb86fef39896b452044d2def0be43b24f1f6b03c38d3a367e7bb10be93ab98ad75024e8a77e1ff3a8dff34f4d8a8fd55472a46a38bdf1a187cfcf1038eb8
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
1
|
+
module PhcdevworksAccountsAuth0
|
2
2
|
class Auth::HandlerController < ApplicationController
|
3
3
|
|
4
4
|
def callback
|
5
|
-
|
6
|
-
session[:
|
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
|
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" =>
|
5
|
-
get "user/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"
|
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:
|
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-
|
12
|
+
date: 2023-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|