0, 'error' => 'Kein Server ausgewählt' ] ) ); } if ( empty( $idLong ) ){ die( json_encode( [ 'status' => 0, 'error' => 'Keine Identität ausgewählt' ] ) ); } if ( empty( $_REQUEST['oidcConnectionId'] ) ){ die( json_encode( [ 'status' => 0, 'error' => 'Daten unvollständig: ' . var_export( $_REQUEST, TRUE ) ] ) ); } $msg = new ParTCP_Outgoing_Message( $serverLong, $idLong, 'oidc-connection-update-request' ); $msg->set( 'Oidc-Connection-Id', $_REQUEST['oidcConnectionId'] ); unset( $_REQUEST['oidcConnectionId'] ); if ( empty( $_REQUEST['client_secret'] ) ){ unset( $_REQUEST['client_secret'] ); } $msg->set( 'Oidc-Connection-Data', $_REQUEST, TRUE ); $response = pas_check_response( $msg->send() ); if ( is_string( $response ) ){ die( json_encode( [ 'status' => 0, 'error' => $response ] ) ); } echo json_encode( [ 'status' => 1, 'error' => '' ] ); // end of file ajax/update_oidc_connection.php