daravel_google 1.25.0
daravel_google: ^1.25.0 copied to clipboard
Google for Daravel. OAuth 2.0 user tokens with refresh, service accounts (RS256 JWT, RFC 7523) and Google Calendar v3 with attendees and Google Meet links.
Changelog #
1.14.0 #
- Added
Google.serviceCredentialsandServiceAccountCredentialsCache:Google.serviceCalendar()shares one token per isolate, scopes and subject; it used to sign an RS256 assertion and call Google's token endpoint on every call. - Added
GoogleOAuth.isRevoked: the client remembers refresh tokens Google answeredinvalid_grantfor (up to 1 000), soUserCredentialsbuilt afresh for each request (Google.calendarFor) do not ask Google again either;UserCredentials.replacealso discards a refresh of the old token still in flight. - Added
UserCredentials.revokedandreplace: once Google answersinvalid_grantthe credentials keep throwing it instead of asking Google's token endpoint again on every call (a busy page hammered it);replaceinstalls the token of a new consent. - Fixed:
UserCredentialsstores a refreshed token (onRefresh) before keeping it; when the store failed, the token in memory was already the new one and the next call never retried the store.
1.12.0 #
- First release:
GoogleToken(google/apiclient's token JSON),GoogleOAuth(consent URL with offline access, code exchange, refresh, revoke),GoogleServiceAccount(key files, RS256 assertions per RFC 7523, domain-wide delegation),UserCredentialsandServiceAccountCredentials(refreshed a minute early, one refresh for concurrent calls),GoogleCalendar(events with guests and Google Meet links: create, get, list, patch, replace, delete),withGoogle()and theGooglefacade.