fun Application.module() { authentication { basic("myBasicAuth") { realm = "Ktor Server" validate { when (it.name) { "user" -> User(it.name) "admin" ...
確定! 回上一頁