TokenExchangeConfig

org.llm4s.llmconnect.auth.TokenExchangeConfig
See theTokenExchangeConfig companion object
@Experimental
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.

Attributes

Companion
object
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
def withAudience(audience: String): TokenExchangeConfig
def withAudience(audience: Option[String]): TokenExchangeConfig
def withClientId(clientId: String): TokenExchangeConfig
def withClientId(clientId: Option[String]): TokenExchangeConfig
def withScope(scope: String): TokenExchangeConfig
def withScope(scope: Option[String]): TokenExchangeConfig
def withTokenUrl(tokenUrl: String): TokenExchangeConfig

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product