FutureCachingAccessTokenProvider

com.ocadotechnology.sttp.oauth2.cache.future.FutureCachingAccessTokenProvider
See theFutureCachingAccessTokenProvider companion object
final class FutureCachingAccessTokenProvider(delegate: AccessTokenProvider[Future], tokenCache: ExpiringCache[Future, Option[Scope], TokenWithExpirationTime], timeProvider: TimeProvider)(implicit ec: ExecutionContext) extends AccessTokenProvider[Future]

Attributes

Companion:
object
Graph
Supertypes
trait AccessTokenProvider[Future]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def requestToken(scope: Option[Scope]): Future[AccessTokenResponse]

Request new token with given scope from OAuth2 provider.

Request new token with given scope from OAuth2 provider.

The scope is the scope of the application we want to communicate with.

Attributes

Definition Classes
AccessTokenProvider

Concrete fields

val semaphore: AsyncSemaphore