Skip to content

Commit e3b42de

Browse files
committed
created an api to login, get projects and submit timesheet
1 parent eaa70bd commit e3b42de

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

api/projects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
throw new Exception('Content-Type must be application/json');
3030
}
3131

32-
$secret_key = "6D7E07D955DC0316597835BB18F810E6105EB8BCE2B4A9B2B241C4C8047800BE";
32+
$secret_key = "91566E2C4E72AF394CAE190D1F2A6062E7826F84BB264962DD3450485C240117";
3333

3434
$body = file_get_contents("php://input");
3535
$object = json_decode($body);

api/submitTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
throw new Exception('Content-Type must be application/json');
2626
}
2727

28-
$secret_key = "6D7E07D955DC0316597835BB18F810E6105EB8BCE2B4A9B2B241C4C8047800BE";
28+
$secret_key = "91566E2C4E72AF394CAE190D1F2A6062E7826F84BB264962DD3450485C240117";
2929

3030
$body = file_get_contents("php://input");
3131
$object = json_decode($body);

api/userlogin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
$isLoggedIn = true;
4444

4545
if ($isLoggedIn) {
46-
$secret_key = "6D7E07D955DC0316597835BB18F810E6105EB8BCE2B4A9B2B241C4C8047800BE"; // (SHA256) HTL@BizOrientDevTeam2020
47-
$issuer_claim = "BizOrient"; // this can be the servername
46+
$secret_key = "91566E2C4E72AF394CAE190D1F2A6062E7826F84BB264962DD3450485C240117"; // (SHA256) TestTimetrackerAPI@2020
47+
$issuer_claim = "sasitha"; // this can be the servername
4848
$audience_claim = "THE_AUDIENCE";
4949
$issuedat_claim = time(); // issued at
5050
$notbefore_claim = $issuedat_claim; //not before in seconds

0 commit comments

Comments
 (0)