Skip to main content

SCOPES

Constant SCOPES 

Source
pub const SCOPES: &str = "openid email https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.freebusy";
Expand description

The scopes pidge asks Google for, space separated.

  • openid email: the id token’s email claim names the account.
  • gmail.modify: read, label, archive, trash, draft and send. Never permanent deletion (that would need the full mail.google.com scope).
  • calendar.events: read and write events on the user’s calendars.
  • calendar.freebusy: freeBusy.query for other people. It is the narrowest scope that endpoint accepts; calendar.readonly would also work but grants reading every calendar’s details, which pidge never needs (it only uses the primary calendar, so no calendarList read).