EnvironmentBearerTokenProvider

class EnvironmentBearerTokenProvider(sysPropKey: String, envKey: String, platform: <Error class: unknown class> = PlatformProvider.System) : BearerTokenProvider

A BearerTokenProvider that extracts the bearer token from JVM system properties or environment variables.

Constructors

Link copied to clipboard
constructor(envKey: String, platform: <Error class: unknown class> = PlatformProvider.System)
constructor(sysPropKey: String, envKey: String, platform: <Error class: unknown class> = PlatformProvider.System)

Functions

Link copied to clipboard
open suspend override fun resolve(attributes: <Error class: unknown class>): BearerToken

Request a BearerToken from the provider