Creates a TokenProvider that exchanges an external JWT for a platform token via RFC 8693 token exchange. After the initial exchange, uses the refresh token for subsequent calls.
const client = new OpenTDF({ interceptors: [authTokenInterceptor(externalJwtTokenProvider({ clientId: 'my-app', externalJwt: 'eyJhbGciOi...', oidcOrigin: 'http://localhost:8080/auth/realms/opentdf', }))], platformUrl: 'http://localhost:8080',}); Copy
const client = new OpenTDF({ interceptors: [authTokenInterceptor(externalJwtTokenProvider({ clientId: 'my-app', externalJwt: 'eyJhbGciOi...', oidcOrigin: 'http://localhost:8080/auth/realms/opentdf', }))], platformUrl: 'http://localhost:8080',});
Creates a TokenProvider that exchanges an external JWT for a platform token via RFC 8693 token exchange. After the initial exchange, uses the refresh token for subsequent calls.