MERGE_LIVE_TOEKN_ISSUE2

This commit is contained in:
Ubuntu 2026-05-15 11:49:13 +05:30
commit e0e298c107

View File

@ -193,11 +193,9 @@ class SamlController extends BaseController
$postId = $empdata['post']['id'] ?? $empdata['post']['employee_id'] ?? null;
if ($postId !== null && $postId !== '') {
$restAuth = new RestAuthenticationController();
$endpoint = env('POST_ENROLLMENT_BASEURL', 'getTokenforSamulssOAuthLogin');
$rawBody = $restAuth->callThirdPartyGETAPI(
['id' => $postId],
$endpoint
);
$rawBody = $restAuth->callThirdPartyGETAPI(['id' => $postId],'getTokenforSamulssOAuthLogin');
$api = is_string($rawBody) ? json_decode($rawBody, true) : null;
if (is_array($api)
&& (($api['status'] ?? '') === 'success' || (int) ($api['code'] ?? 0) === 200)