kvision / pl.treksoft.kvision.remote / SecurityMgr

SecurityMgr

(js) abstract class SecurityMgr

Form login dispatcher.

Constructors

(js)

<init>

Form login dispatcher.

SecurityMgr()

Functions

(js)

afterError

Method called after error.

open suspend fun afterError(): Unit
(js)

afterLogin

Method called after successful login.

open suspend fun afterLogin(): Unit
(js)

login

Login user.

abstract suspend fun login(): Boolean
(js)

withAuth

Executes given block of code after successful authentication.

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