CachingAccessTokenProvider

com.ocadotechnology.sttp.oauth2.cache.ce2.CachingAccessTokenProvider
See theCachingAccessTokenProvider companion object
final class CachingAccessTokenProvider[F[_]](delegate: AccessTokenProvider[F], semaphore: Semaphore[F], tokenCache: ExpiringCache[F, Option[Scope], TokenWithExpirationTime])(implicit evidence$1: Monad[F], evidence$2: Clock[F]) extends AccessTokenProvider[F]

Attributes

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

Members list

Concise view

Value members

Concrete methods

override def requestToken(scope: Option[Scope]): F[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