applyAuthnForToken

suspend fun applyAuthnForToken(oauthMetadata: OAuth2AuthorizationServerMetadata, popAudience: String, resourceUrl: String, httpMethod: HttpMethod, useDpop: Boolean, dpopNonce: String? = null): HttpRequestBuilder.() -> Unit(source)

Sets the appropriate headers when accessing a token endpoint, i.e., performs client authentication, also sign DPoP proof when useDpop is set.