addAuthentication

abstract fun addAuthentication(request: Request, principal: P?): Request

Adds the authentication information to all requests by using the given principal.

Return

enriched Request

Parameters

request

Request to enrich

principal

principle containing authentication information