Skip to content

Commit

Permalink
[Feature] Added hmac256 signature and fixed tests also created demo p…
Browse files Browse the repository at this point in the history
…ages for the new signature LRN-38572

Change in branch
  • Loading branch information
bhavya-shukla-lrn committed Jun 29, 2023
1 parent 19d6ba7 commit a6bf743
Show file tree
Hide file tree
Showing 26 changed files with 958 additions and 53 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v0.9.2] - 2023-06-23
### Security
- Upgraded signature to match the security standard.

## [v0.9.1] - 2019-12-23
### Added
Expand Down
25 changes: 25 additions & 0 deletions LearnosityDemo/LearnosityDemo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1704.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearnosityDemo", "LearnosityDemo.csproj", "{27F96458-915A-4C09-91CF-C72F2144559F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{27F96458-915A-4C09-91CF-C72F2144559F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27F96458-915A-4C09-91CF-C72F2144559F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27F96458-915A-4C09-91CF-C72F2144559F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{27F96458-915A-4C09-91CF-C72F2144559F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1FD8BD7C-CC74-4222-AE18-82F15D9DF2CE}
EndGlobalSection
EndGlobal
26 changes: 26 additions & 0 deletions LearnosityDemo/Pages/AssessAPIDemo.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@page
@model LearnosityDemo.Pages.AssessAPIDemoModel
@{
ViewData["Title"] = "Learnosity Example: Standalone Assessment";
ViewData["TopJS"] = "<script src=\"https://assess.learnosity.com?latest-lts\"></script>";

}
<!-- Assess API will render the assess app into this id. -->
<div id="learnosity_assess"></div>
<!-- Initiate Assess API rendering, using the JSON blob of signed params. -->
<script>
const callbacks = {
errorListener: function(e) {
// Adds a listener to all error codes.
console.log("Error Code ", e.code);
console.log("Error Message ", e.msg);
console.log("Error Detail ", e.detail);
},
readyListener: function() {
console.log("Learnosity Questions API is ready");
}
};
const assessApp = LearnosityAssess.init(@Html.Raw(ViewData["InitJSON"]), "learnosity_assess", callbacks);
</script>
Loading

0 comments on commit a6bf743

Please sign in to comment.