works.iterative.server.http.AuthedZIOWebModule
See theAuthedZIOWebModule companion object
trait AuthedZIOWebModule[R, C] extends WebModuleTypes
Authenticated web module is similar to ZIOWebModule, but it requires additional Context type parameter. This type parameter is used by the authentication system to provide additional information about the authenticated user.
To convert AuthedZIOWebModule to ZIOWebModule, you will need to provide authentication middleware, e.g. by using pac4j:
trait Pac4jZIOWebModule[R](pac4jSecurity: Pac4jHttpSecurity[R]) extends ZIOWebModule[R]:
def wrap[C](inner: AuthedZIOWebModule[R, C])(
toContext: List[CommonProfile] => Option[C],
clients: Option[String] = Some("OidcClient")
): ZIOWebModule[R]
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Self type
-
Members list
In this article