Scroll to navigation

sasl-xoauth2-tool(1) General Commands Manual sasl-xoauth2-tool(1)

NAME

sasl-xoauth2-tool

SYNOPSIS

sasl-xoauth2-tool [-h] {get-token,test-config,test-token-refresh} ...

OPTIONS

Sub-commands

OPTIONS 'sasl-xoauth2-tool get-token'

usage: sasl-xoauth2-tool get-token [-h] --client-id CLIENT_ID
[--tenant TENANT]
[--client-secret CLIENT_SECRET]
[--scope SCOPE]
{outlook,gmail} [output_file]

Fetches initial access and refresh tokens from an OAuth 2 provider

{outlook,gmail}
service type

output file, '-' for stdout

required for both services

wanted by 'outlook' (defaults to 'consumers')

required for both services, will prompt the user if blank

required for 'gmail'

OPTIONS 'sasl-xoauth2-tool test-config'

usage: sasl-xoauth2-tool test-config [-h] [--config-file CONFIG_FILE]

Tests a sasl-xoauth2 config file for syntax errors

config file path (defaults to '/etc/sasl-xoauth2.conf')

OPTIONS 'sasl-xoauth2-tool test-token-refresh'

usage: sasl-xoauth2-tool test-token-refresh [-h] [--config-file CONFIG_FILE]
token_file

Tests that a token can be refreshed (i.e., that the OAuth 2 flow is working correctly)

file containing initial access token

config file path (defaults to '/etc/sasl-xoauth2.conf')

AUTHORS

sasl-xoauth2 was written by Tarick Bedeir <tarick@bedeir.com>.

DISTRIBUTION

The latest version of sasl-xoauth2 may be downloaded from https://github.com/tarickb/sasl-xoauth2

Manual