MERGE_TEST_TOEKN_ISSUE2
This commit is contained in:
commit
e4e5c812e9
@ -193,11 +193,9 @@ class SamlController extends BaseController
|
|||||||
$postId = $empdata['post']['id'] ?? $empdata['post']['employee_id'] ?? null;
|
$postId = $empdata['post']['id'] ?? $empdata['post']['employee_id'] ?? null;
|
||||||
if ($postId !== null && $postId !== '') {
|
if ($postId !== null && $postId !== '') {
|
||||||
$restAuth = new RestAuthenticationController();
|
$restAuth = new RestAuthenticationController();
|
||||||
$endpoint = env('POST_ENROLLMENT_BASEURL', 'getTokenforSamulssOAuthLogin');
|
|
||||||
$rawBody = $restAuth->callThirdPartyGETAPI(
|
$rawBody = $restAuth->callThirdPartyGETAPI(['id' => $postId],'getTokenforSamulssOAuthLogin');
|
||||||
['id' => $postId],
|
|
||||||
$endpoint
|
|
||||||
);
|
|
||||||
$api = is_string($rawBody) ? json_decode($rawBody, true) : null;
|
$api = is_string($rawBody) ? json_decode($rawBody, true) : null;
|
||||||
if (is_array($api)
|
if (is_array($api)
|
||||||
&& (($api['status'] ?? '') === 'success' || (int) ($api['code'] ?? 0) === 200)
|
&& (($api['status'] ?? '') === 'success' || (int) ($api['code'] ?? 0) === 200)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user