Adjust lesson template (#704)
* Remove method `getId()` from all lessons as it defaults to the class name * remove clean up endpoint * remove unused class `RequestParameter` * remove unused class `PluginLoadingFailure` * Move `CourseConfiguration` to lesson package * Add more content around the lesson template lesson and make it visible as a lesson in WebGoat * Remove explicit invocation `trackProgress()` inside WebGoat framework so assignments only need to return an `AttackResult` * Put original solution back as well for SQL string injection * review comments * Add
This commit is contained in:
committed by
René Zubcevic
parent
f40b6ffd31
commit
5dd6b31905
@ -22,17 +22,13 @@ There are a number of moving parts and this sample lesson will help you navigate
|
||||
```
|
||||
1. The Base Class
|
||||
|
||||
* The name of the class (file and class name) to better match your lesson. (e.g. `sql-injection` >> `SqlInjection`)
|
||||
* The category in which you want your lesson to be in. You can create a new category if you want, or put in an issue to have one added.
|
||||
* The `defaultRanking` will move your lesson up or down in the categories list.
|
||||
* The name of the class (file and class name) to better match your lesson. (e.g. `sql-injection` >> `SqlInjection`)
|
||||
* The category in which you want your lesson to be in. You can create a new category if you want, or put in an issue to have one added.
|
||||
* Implement a new key name pair `lesson-template.title` (the key) and update the same key/value pair `your.key=your value` in src/main/resources/i18n/WebGoatLabels.properties.
|
||||
* Implement a new value for the `getId` method, which leads us to...
|
||||
|
||||
2. The HTML content framing
|
||||
|
||||
* Rename the provided file in src/main/resources/html using your value from the `getId` method in your lesson's base class:
|
||||
e.g.
|
||||
`public String getId() { return "your-lesson"; }` >> `your-lesson.html`
|
||||
* Rename the provided file in src/main/resources/html using the name of the lesson class.
|
||||
* Modify that file following the commented instructions in there.
|
||||
* In conjunction with this file you.
|
||||
|
||||
@ -41,7 +37,6 @@ There are a number of moving parts and this sample lesson will help you navigate
|
||||
* You can also create supporting (non-assignment) endpoints, that are not evaluated/graded.
|
||||
* See other lesson examples for creating unit/integration tests for your project as well.
|
||||
|
||||
|
||||
4. Getting your lesson to show up
|
||||
|
||||
* Modify the webgoat-lessons/pom.xml to include your project in the `<modules>` section:
|
||||
@ -63,8 +58,8 @@ There are a number of moving parts and this sample lesson will help you navigate
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- .... >
|
||||
</dependencies>
|
||||
```
|
||||
</dependencies>
|
||||
```
|
||||
|
||||
|
||||
5. You should be ready to run and test your project. Please create issues at https://github.com/WebGoat/WebGoat if there errors or confusion with this documentation/template
|
||||
|
Reference in New Issue
Block a user