install

fun install(application: Application, protocolAuthenticatedPaths: Set<String> = emptySet())

Installs the gate ahead of routing. Call before the server starts.

Parameters

protocolAuthenticatedPaths

routes the server itself authenticates through the protocol it implements — an OAuth token endpoint that takes a pre-authorized code, a credential endpoint that takes an access token. Those callers are wallets, which cannot hold a host credential, so a host gate in front of them would refuse the protocol rather than protect it. This is the server's declaration about its own routes, not a host setting: a host that wants to narrow what it exposes does that in front of the server.