kvision / pl.treksoft.kvision.remote / SecurityMgr

SecurityMgr

abstract class SecurityMgr

Form login dispatcher.

Constructors

<init>

SecurityMgr()

Form login dispatcher.

Functions

afterError

open suspend fun afterError(): Unit

Method called after error.

afterLogin

open suspend fun afterLogin(): Unit

Method called after successful login.

login

abstract suspend fun login(): Boolean

Login user.

withAuth

suspend fun <T> withAuth(block: suspend () -> T): T

Executes given block of code after successful authentication.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.