kvision / pl.treksoft.kvision.remote / SecurityMgr

SecurityMgr

abstract class SecurityMgr

Pac4j form login dispatcher.

Constructors

<init>

SecurityMgr()

Pac4j 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.