oat-sa/extension-tao-outcomelti v5.1.3
“extension to manage LTI outcome for TAO”
Basename is uppercase README.mdFile declares itself demo seed data
SHA-256b8c60bc032aa9b2e9980c02e5d892a41b340fa4d9fa9ddd9818e93eddd7abd12
Evidence
1## Ticket:
2
3## What's Changed
4- Introduced a new feature called `foobar`.
5
⋯11 lines
17- [ ] Pull request title and description are meaningful
18
19## TODO
20- [x] Unit tests
21- [x] E2E tests
22- [ ] Update with packages
23
24## Dependencies PRs
25- https://github.com/oat-sa/..
26
27## How to test
28- Explain here how to test or make a small demo to our team how this works
1<?php
2
3// phpcs:disable PSR1.Files.SideEffects
4require_once("OAuth.php");
5require_once("TrivialOAuthDataStore.php");
6
7function getLastOAuthBodyBaseString()
⋯6 lines
15:29… Util::get_headers();
16 // print_r($request_headers);
17
18 if (@substr($request_headers['Authorization'], 0, 6) == "OAuth ") {
19 $header_parameters = OAuthUtil::split_header($request_headers['Authorization']);
20
21 // echo("HEADE …
30:40… eaders();
31 // print_r($request_headers);
32
33 // Must reject application/x-www-form-urlencoded
34 $hdr = $request_headers['Content-type'];
35 if (!isset($hdr)) {
36 $hdr = $request_headers['Content-Type'];
37 }
38 …
73:28… ("OAuth signature failed: " . $message);
74 }
75
76 $postdata = file_get_contents('php://input');
77 // echo($postdata);
78
79 $hash = base64_encode(sha1($postdata, true));
80
81 if ($hash != $oauth_body_hash) {
82 throw new Exception("OAuth oauth_body_hash mismatch");
83 }
84
Showing the top 5 files — 1 more file (16 regions) not shown.
No evidence locations were recorded for this file. Raw result