Skip to content
Snippets Groups Projects
Commit 6e96f4a9 authored by Martin Haase's avatar Martin Haase
Browse files

some better output

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@9673 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent d345d0ff
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ if( isset( $_POST['auth'] ) ) {
// -----------------------------------------------------
$regReq = new registerResourceRequest();
$regReq->auth = $_POST['auth'];
$regReq->secret = "XXXXXXXXXXXXXCRUDsecretXXXXXXXXXXXXXXX";
$regReq->secret = $_POST['secret'];
$regReq->log = "";
$regReq->project = $_POST['project'];
$regReq->uri = $_POST['uri'];
......@@ -65,18 +65,9 @@ if( isset( $_POST['auth'] ) ) {
echo "<FORM action=\"registerResource.php\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "Target: ";
echo "<SELECT name=\"wsdl\">\n";
for( $i = 0; $i < sizeof( $arrExtraWsdl ); $i++ ) {
echo "<OPTION value=\"" . $i . "\">" . $arrExtraWsdl[$i]['name'] . "</OPTION>\n";
}
echo "</SELECT><BR>\n";
echo "Auth: <INPUT type=\"text\" name=\"auth\" value=\"\"><BR>\n";
echo "Project-Name: <INPUT type=\"text\" name=\"project\" value=\"\"><BR>\n";
echo "CRUD secret: <INPUT type=\"text\" name=\"secret\" value=\"\"><BR>\n";
echo "URI: <INPUT type=\"text\" name=\"uri\" value=\"\"><BR>\n";
echo "<INPUT type=\"submit\" value=\"Commit...\">\n";
echo "</FORM>\n";
......
......@@ -44,7 +44,8 @@ if( isset( $_POST['auth'] ) ) {
$checkResponse = $soapSystem->tgCrudCheckAccess( $regReq );
echo $soapSystem->__getLastResponse();
// echo $soapSystem->__getLastResponse();
if( $checkResponse->result ) {
......@@ -53,6 +54,8 @@ if( isset( $_POST['auth'] ) ) {
echo "Allowed operations: " . serialize( $checkResponse->operation ) . "<BR>";
echo "public: ". serialize ($checkResponse->public) . "<BR>";
echo "project: ". serialize ($checkResponse->project) . "<BR>";
echo "user owning it: ". serialize ($checkResponse->username) . "<BR>";
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment