authenticate

context(_: Raise<Issue>)
fun authenticate(request: Request): Principal

Shared authentication logic for both OAuth and Password handlers.