- Implemented `KekaController` to manage OAuth flows for Keka HR, including connection, callback, and disconnection. - Added required routes, middleware updates, and session handling for Keka integration. - Enhanced dashboard UI to display Keka connection status and provide seamless connect/disconnect options. - Included validation and configuration for Keka Portal URL in connected apps. - Developed feature tests to ensure reliable authentication and token handling workflows for Keka.
15 lines
403 B
PHP
15 lines
403 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
require 'vendor/autoload.php';
|
|
$app = require_once 'bootstrap/app.php';
|
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
|
$kekaApp = App\Models\ConnectedApp::whereHas('provider', function ($query): void {
|
|
$query->where('slug', 'keka-hr');
|
|
})->first();
|
|
if ($kekaApp) {
|
|
print_r($kekaApp->toArray());
|
|
} else {
|
|
echo "No Keka HR app found\n";
|
|
}
|