Skip to content

Commit

Permalink
Change location and regex of loggin/out indicators
Browse files Browse the repository at this point in the history
pritchyspritch committed Jul 31, 2024
1 parent bbca3c8 commit 8826e6e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions stackhawk_kotlin.kts
Original file line number Diff line number Diff line change
@@ -15,15 +15,6 @@ import java.net.HttpCookie
val logger = LogManager.getLogger("external-script")


fun getLoggedOutIndicator() : String {
return ".*DfE Sign-in.*"
}

fun getLoggedInIndicator() : String {
return ".*Access DfE services.*"
}


// This function is called before a scan is started and when the loggedOutIndicator is matched indicating re-authentication is needed.
fun authenticate(
helper: AuthenticationHelper,
@@ -186,4 +177,12 @@ fun getCredentialsParamsNames(): Array<String> {

fun getOptionalParamsNames(): Array<String> {
return arrayOf("cookie_file")
}

fun getLoggedOutIndicator() : String {
return "DfE Sign-in"
}

fun getLoggedInIndicator() : String {
return "Access DfE services"
}

0 comments on commit 8826e6e

Please sign in to comment.