Tech
04/20/2024, 5:31 PMAfterAuthentication
, I tried writing something like this,
object ScopesChecked : Hook<suspend (ApplicationCall) -> Unit> {
private val AfterAuthenticationPhase: PipelinePhase = PipelinePhase("AfterAuthentication")
override fun install(
pipeline: ApplicationCallPipeline,
handler: suspend (ApplicationCall) -> Unit
) {
// Intercept the after auth and handle our own phase
pipeline.intercept(AfterAuthenticationPhase) { handler(call) }
}
}
However after debugging a bit it looks like it only has access to these Pipeline Phases
BeforeSetup
Setup
Monitoring
Plugins
BeforeCall
Call
BeforeFallback
Fallback
Thank you!Aleksei Tirman [JB]
04/22/2024, 7:15 AMApplicationCallPipeline.Plugins
phase and intercept it. Can you explain what problem you are trying to solve?