vertx / io.vertx.kotlin.ext.stomp / io.vertx.ext.stomp.StompServerHandler / onAuthenticationRequestAwait

# onAuthenticationRequestAwait

`suspend fun StompServerHandler.onAuthenticationRequestAwait(connection: StompServerConnection, login: String, passcode: String): Boolean`

Called when the client connects to a server requiring authentication. It invokes the configured using io.vertx.ext.stomp.StompServerHandler.

### Parameters

`connection` - server connection that contains session ID

`login` - the login

`passcode` - the password

`handler` - handler receiving the authentication result

Returnthe
current io.vertx.ext.stomp.StompServerHandler *