TokenExchangeConfig

org.llm4s.llmconnect.auth.TokenExchangeConfig
See theTokenExchangeConfig companion object
@Stable
final case class TokenExchangeConfig

An RFC 8693 token exchange: present identityToken at tokenUrl, get back a short-lived bearer token. Databricks workload identity federation is one such endpoint (https://<workspace>/oidc/v1/token, scope = all-apis, clientId = the service principal).

toString shows tokenUrl without its userinfo or query, which may carry credentials, and redacts clientId.

Stable since #1818: OpenAICompatibleConfig.tokenExchange and OpenAICompatibleClient.Credential.Exchange carry it. The exchange itself (TokenExchange) is still Experimental.

Attributes

Companion
object
Source
TokenExchange.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
TokenExchange.scala

Attributes

Source
TokenExchange.scala

Attributes

Source
TokenExchange.scala

Attributes

Source
TokenExchange.scala

Attributes

Source
TokenExchange.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product