@@ -91,10 +91,11 @@ specifying which 'Scope's the resulting 'OAuthToken' is authorized to access.
9191/See:/ <https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority Delegating authority to your service account>.
9292-}
9393data ServiceAccount = ServiceAccount
94− { _serviceId :: !ClientId
95− , _serviceEmail :: !Text
96− , _serviceKeyId :: !Text
97− , _servicePrivateKey :: !PrivateKey
94+ { _serviceId :: !ClientId
95+ , _serviceEmail :: !Text
96+ , _serviceKeyId :: !Text
97+ , _servicePrivateKey :: !PrivateKey
98+ , _serviceAccountUser :: !(Maybe Text)
9899 } deriving (Eq, Show)
99100
100101instance FromJSON ServiceAccount where
@@ -109,6 +110,7 @@ instance FromJSON ServiceAccount where
109110 <*> o .: "client_email"
110111 <*> o .: "private_key_id"
111112 <*> pure k
113+ <*> pure Nothing
112114
113115{-| Authorized User credentials which are typically generated by the Cloud SDK
114116Tools such as @gcloud init@, of the following form: