* better check on host and port for password reset and make context roots more flexible * spotless applied * removed hardcoded /WebGoat from js * removed hardcoded /WebGoat from js * fix spotless * fix scoreboard * upgrade WebWolf bootstrap version and icons and templates - part 1 * fixed more bootstrap 5 style issues and context path issues * organized WebSecurityConfig based on latest conventions and added basic support for oauth (more work needed) * spotless applied * added mock bean * requires updates to properties - commented for now * requires updates to properties - commented for now * oauth secrets through env values * user creation after oauth login * integration test against non default context paths * adjusted StartupMessage * add global model element username * conditionally show login oauth links * fixed WebWolf login --------- Co-authored-by: René Zubcevic <rene@Mac-mini-van-Rene.local>
19 lines
532 B
JavaScript
19 lines
532 B
JavaScript
// need custom js for this?
|
|
|
|
webgoat.customjs.idorViewProfile = function(data) {
|
|
webgoat.customjs.jquery('#idor-profile').html(
|
|
'name:' + data.name + '<br/>'+
|
|
'color:' + data.color + '<br/>'+
|
|
'size:' + data.size + '<br/>'
|
|
);
|
|
}
|
|
|
|
var onViewProfile = function () {
|
|
console.warn("on view profile activated")
|
|
webgoat.customjs.jquery.ajax({
|
|
method: "GET",
|
|
url: "IDOR/profile",
|
|
contentType: 'application/json; charset=UTF-8'
|
|
}).then(webgoat.customjs.idorViewProfile);
|
|
}
|