goog_auth

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Create, read, update, and delete labels only.
	ScopeGmailLabels = "https://www.googleapis.com/auth/gmail.labels"

	// Send messages only. No read or modify privileges on mailbox.
	ScopeGmailSend = "https://www.googleapis.com/auth/gmail.send"

	// Read all resources and their metadata—no write operations.
	ScopeGmailReadonly = "https://www.googleapis.com/auth/gmail.readonly"

	// Create, read, update, and delete drafts. Send messages and drafts.
	ScopeGmailCompose = "https://www.googleapis.com/auth/gmail.compose"

	// Insert and import messages only.
	ScopeGmailInsert = "https://www.googleapis.com/auth/gmail.insert"

	// 	All read/write operations except immediate, permanent deletion of threads and messages, bypassing Trash.
	ScopeGmailModify = "https://www.googleapis.com/auth/gmail.modify"

	// Read resources metadata including labels, history records, and email message headers, but not the message body or attachments.
	ScopeGmailMetadata = "https://www.googleapis.com/auth/gmail.metadata"

	// Manage basic mail settings.
	ScopeGmailSettingsBasic = "https://www.googleapis.com/auth/gmail.settings.basic"

	// Manage sensitive mail settings, including forwarding rules and aliases.
	ScopeGmailSettingsSharing = "https://www.googleapis.com/auth/gmail.settings.sharing"

	// Full access to the account, including permanent deletion of threads and messages.
	ScopeGmailFull = "https://mail.google.com/"
)

Gmail scopes

View Source
const (
	// Allows read-only access to the user's sheets and their properties.
	ScopeSheetsReadOnly = "https://www.googleapis.com/auth/spreadsheets.readonly"

	// Allows read/write access to the user's sheets and their properties.
	ScopeSheetsReadWrite = "https://www.googleapis.com/auth/spreadsheets"

	// Allows read-only access to the user's file metadata and file content.
	ScopeSheetsDriveReadOnly = "https://www.googleapis.com/auth/drive.readonly"

	// Per-file access to files created or opened by the app.
	ScopeSheetsDriveFile = "https://www.googleapis.com/auth/drive.file"

	// Full, permissive scope to access all of a user's files. Request this scope only when it is strictly necessary.
	ScopeSheetsFull = "https://www.googleapis.com/auth/drive"
)

Google Sheets API scopes https://developers.google.com/sheets/api/guides/authorizing

Variables

This section is empty.

Functions

func NewApp

func NewApp(ctl app_control.Control) api_auth.App

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) Config

func (z *App) Config(scopes []string) *oauth2.Config

func (*App) UsePKCE

func (z *App) UsePKCE() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL