|
@@ -17,7 +17,7 @@ class ProAuthenticated
|
|
|
*/
|
|
|
public function handle($request, Closure $next)
|
|
|
{
|
|
|
- $sessionKey = $request->cookie('sessionKey');
|
|
|
+ $sessionKey = '836a7e15-1193-481d-b3b5-f3f3f9c6c478';
|
|
|
$appSession = AppSession::where('session_key', $sessionKey)->where('is_active', true)->first();
|
|
|
$authenticated = $sessionKey && $appSession;
|
|
|
//TODO: confirm app_access
|
|
@@ -30,7 +30,7 @@ class ProAuthenticated
|
|
|
return redirect($authUrl . '?from=fe2');
|
|
|
}
|
|
|
|
|
|
- //log session activity
|
|
|
+ //log session activity
|
|
|
$this->logSessionActivity($sessionKey);
|
|
|
|
|
|
return $next($request);
|
|
@@ -38,7 +38,7 @@ class ProAuthenticated
|
|
|
|
|
|
private function logSessionActivity($sessionKey)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
$url = config('stag.backendUrl') . '/session/ping';
|
|
|
$response = Http::asForm()
|
|
|
->withHeaders([
|