Header
Body Params
LANGUAGAE
<?php
/* 1 , 2 are register type */
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cripsa.com/v2/oidc/oidc-register-app',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"domain": "example.com",
"RegisterType": "1",
"ProviderName": "example-test-octa",
"IDPclientId": "0oa87g2guvylmC63H5Gd7",
"IDPclientSecret": "bO-LHdaYdEWQ4sw1TGGIn2XkhmVG1o9cAWrQN-EZV",
"oidc-issuer": "https://dev-125016111.okta.com"
}',
CURLOPT_HTTPHEADER => array(
'x-api-key: IOjWbS1stM9bT5zyAxvufUfdCGH8Xt2aBq5VT4hf',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;