MERGE_UAT_TOEKN_ISSUE2
This commit is contained in:
commit
3552f6def4
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user