authenticateWithClientCredentials

abstract fun authenticateWithClientCredentials(clientId: String, clientSecret: String): Principal

The client clientId, having verified clientSecret with the node's authenticator (the OAuth client-credentials flow). The principal's user id is the one the authenticator resolves for that client.

Throws

(xtdb.authn/failed) if the credentials are rejected.

if the node's authenticator doesn't support client credentials.