auth

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disabled

func Disabled() error

Disabled checks if iTerm2 is configured to accept connections from every client, or if a client should first request the cookie and key instead. If auth is for sure disabled it returns nil, otherwise it returns an error with a description of why auth appears enabled or it was not possible to complete detection. See https://iterm2.com/python-api-auth.html for documentation of iTerm2's API Security.

func MagicString

func MagicString() (string, error)

MagicString returns the expected contents of the `disable-automation-auth` file. See https://iterm2.com/python-api-auth.html for documentation of iTerm2's API Security.

func RequestCookieAndKey

func RequestCookieAndKey(appName string, activate bool) (string, string, error)

RequestCookieAndKey requests the cookie and key to authenticate with iTerm2 via Applescript, potentially triggering iTerm2's or macOS confirmation dialogs. If activate is true, iTerm2 will be started automatically if it's currently not running. If iTerm2 is not running and and active is false, an error will be returned without attempting to request the cookie and key. See https://iterm2.com/python-api-auth.html for documentation of iTerm2's API Security.

Types

This section is empty.

Jump to

Keyboard shortcuts

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