1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
function TProSanteConnect.LogOut(TokenID: String): Boolean;
var
jO : TJSONObject;
AuthReqID : String;
begin
Result := False;
try
MyRestClient.BaseURL := LogOutUrl;
MyRestClient.Authenticator := MyHTTPBasicAuth;
MyRESTRequest.Method := TRESTRequestMethod.rmGet;
MyRESTClient.ContentType := 'application/x-www-form-urlencoded';
MyRESTRequest.Params.Clear;
MyRESTRequest.Params.AddItem('id_token_hint' , TokenID , pkGETorPOST);
MyRESTRequest.Params.AddItem('acr_values' , 'eidas1' , pkGETorPOST);
MyRESTRequest.Execute;
if MyRESTRequest.Response.StatusCode = 200 then
Result := True;
Except
end;
end; |
Partager