Rename authbypass
This commit is contained in:
		| @ -20,7 +20,7 @@ | |||||||
|  * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. |  * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.owasp.webgoat.lessons.auth_bypass; | package org.owasp.webgoat.lessons.authbypass; | ||||||
| 
 | 
 | ||||||
| import java.util.HashMap; | import java.util.HashMap; | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
| @ -20,7 +20,7 @@ | |||||||
|  * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. |  * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.owasp.webgoat.lessons.auth_bypass; | package org.owasp.webgoat.lessons.authbypass; | ||||||
| 
 | 
 | ||||||
| import org.owasp.webgoat.container.lessons.Category; | import org.owasp.webgoat.container.lessons.Category; | ||||||
| import org.owasp.webgoat.container.lessons.Lesson; | import org.owasp.webgoat.container.lessons.Lesson; | ||||||
| @ -20,7 +20,7 @@ | |||||||
|  * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. |  * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.owasp.webgoat.lessons.auth_bypass; | package org.owasp.webgoat.lessons.authbypass; | ||||||
| 
 | 
 | ||||||
| import org.owasp.webgoat.container.assignments.AssignmentEndpoint; | import org.owasp.webgoat.container.assignments.AssignmentEndpoint; | ||||||
| import org.owasp.webgoat.container.assignments.AssignmentHints; | import org.owasp.webgoat.container.assignments.AssignmentHints; | ||||||
| @ -4,14 +4,14 @@ | |||||||
|         <!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson --> |         <!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson --> | ||||||
|         <!-- include content here, or can be placed in another location. Content will be presented via asciidocs files, |         <!-- include content here, or can be placed in another location. Content will be presented via asciidocs files, | ||||||
|         which go in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc --> |         which go in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc --> | ||||||
|         <div class="adoc-content" th:replace="doc:lessons/auth_bypass/documentation/bypass-intro.adoc"></div> |         <div class="adoc-content" th:replace="doc:lessons/authbypass/documentation/bypass-intro.adoc"></div> | ||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|     <div class="lesson-page-wrapper"> |     <div class="lesson-page-wrapper"> | ||||||
|         <!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson --> |         <!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson --> | ||||||
|         <!-- include content here, or can be placed in another location. Content will be presented via asciidocs files, |         <!-- include content here, or can be placed in another location. Content will be presented via asciidocs files, | ||||||
|         which go in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc --> |         which go in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc --> | ||||||
|         <div class="adoc-content" th:replace="doc:lessons/auth_bypass/documentation/2fa-bypass.adoc"></div> |         <div class="adoc-content" th:replace="doc:lessons/authbypass/documentation/2fa-bypass.adoc"></div> | ||||||
|         <div class="attack-container"> |         <div class="attack-container"> | ||||||
|             <div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div> |             <div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div> | ||||||
|             <!-- using attack-form class on your form, will allow your request to be ajaxified and stay within the display framework for webgoat --> |             <!-- using attack-form class on your form, will allow your request to be ajaxified and stay within the display framework for webgoat --> | ||||||
| @ -72,9 +72,9 @@ | |||||||
|         <!-- reuse the above lesson-page-wrapper block for each 'page' of content in your lesson --> |         <!-- reuse the above lesson-page-wrapper block for each 'page' of content in your lesson --> | ||||||
|         <!-- include content here, or can be placed in another location. Content will be presented via asciidocs files, |         <!-- include content here, or can be placed in another location. Content will be presented via asciidocs files, | ||||||
|         which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc --> |         which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc --> | ||||||
|         <!--<div class="adoc-content" th:replace="doc:lessons/auth_bypass/documentation/lesson-template-video.adoc"></div>--> |         <!--<div class="adoc-content" th:replace="doc:lessons/authbypass/documentation/lesson-template-video.adoc"></div>--> | ||||||
|         <!-- can use multiple adoc's in a page-wrapper if you want ... or not--> |         <!-- can use multiple adoc's in a page-wrapper if you want ... or not--> | ||||||
|         <!--<div class="adoc-content" th:replace="doc:lessons/auth_bypass/documentation/lesson-template-attack.adoc"></div>--> |         <!--<div class="adoc-content" th:replace="doc:lessons/authbypass/documentation/lesson-template-attack.adoc"></div>--> | ||||||
| 
 | 
 | ||||||
|         <!-- WebGoat will automatically style and scaffold some functionality by using the div.attack-container as below --> |         <!-- WebGoat will automatically style and scaffold some functionality by using the div.attack-container as below --> | ||||||
| 
 | 
 | ||||||
| Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB | 
| Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 125 KiB | 
| @ -23,13 +23,14 @@ | |||||||
|  * <p> |  * <p> | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.owasp.webgoat.lessons.auth_bypass; | package org.owasp.webgoat.lessons.authbypass; | ||||||
| 
 | 
 | ||||||
| import org.junit.jupiter.api.BeforeEach; | import org.junit.jupiter.api.BeforeEach; | ||||||
| import org.junit.jupiter.api.Test; | import org.junit.jupiter.api.Test; | ||||||
| import org.junit.jupiter.api.extension.ExtendWith; | import org.junit.jupiter.api.extension.ExtendWith; | ||||||
| import org.mockito.junit.jupiter.MockitoExtension; | import org.mockito.junit.jupiter.MockitoExtension; | ||||||
| import org.owasp.webgoat.container.assignments.AssignmentEndpointTest; | import org.owasp.webgoat.container.assignments.AssignmentEndpointTest; | ||||||
|  | import org.owasp.webgoat.lessons.authbypass.VerifyAccount; | ||||||
| import org.springframework.test.web.servlet.MockMvc; | import org.springframework.test.web.servlet.MockMvc; | ||||||
| 
 | 
 | ||||||
| import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; | import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; | ||||||
		Reference in New Issue
	
	Block a user