InstanceMetadataOAuth

class InstanceMetadataOAuth[F[_]](httpClient: Client[F])(implicit evidence$1: Async[F], evidence$2: Logger[F]) extends OAuth[F] with Http4sClientDsl[F]
trait OAuth[F]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def authenticate(iss: String, scope: String, exp: Instant, iat: Instant): F[Option[AccessToken]]

Based on https://developers.google.com/identity/protocols/OAuth2ServiceAccount

Value parameters:
exp

The expiration time of the assertion, specified as milliseconds since 00:00:00 UTC, January 1, 1970.

iat

The time the assertion was issued, specified as milliseconds since 00:00:00 UTC, January 1, 1970.

iss

The email address of the service account.

scope

A space-delimited list of the permissions that the application requests.

Definition Classes
Source:
InstanceMetadataOAuth.scala

Concrete fields

final override val maxDuration: FiniteDuration

Implicits

Inherited implicits

implicit def http4sClientSyntaxMethod(method: Method): MethodOps[F]
implicit def http4sHeadersDecoder[T](implicit F: Applicative[F], decoder: EntityDecoder[F, T]): EntityDecoder[F, (Headers, T)]