feature/#30-group-authentication #31

Merged
william merged 10 commits from feature/#30-group-authentication into develop 2022-08-03 08:04:11 -04:00
3 changed files with 3 additions and 6 deletions
Showing only changes of commit d02faf7bce - Show all commits

View File

@ -106,10 +106,6 @@ tasks.withType<JavaCompile>() {
tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
freeCompilerArgs = listOf(
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
"-Xinline-classes"
)
}
}

View File

@ -21,6 +21,7 @@ object Constants {
const val LOGIN = "$BASE_PATH/account/login"
const val GROUP_LOGIN = "$BASE_PATH/account/login/group"
const val LOGOUT = "$BASE_PATH/account/logout"
}
object CookieNames {

View File

@ -78,10 +78,10 @@ class UserController(private val userLogic: UserLogic) {
}
@RestController
@RequestMapping("api")
@RequestMapping(Constants.ControllerPaths.LOGOUT)
@Profile("!emergency")
class LogoutController(private val userLogic: UserLogic) {
@GetMapping("logout")
@GetMapping
@PreAuthorize("isFullyAuthenticated()")
fun logout(request: HttpServletRequest) =
ok {