tarickb / sasl-xoauth2

SASL plugin for XOAUTH2
Other
72 stars 20 forks source link

PATH_TO_TOKENS_FILE format #66

Closed ridebadger closed 1 year ago

ridebadger commented 1 year ago

I am receiving an error: "sasl-xoauth2-tool: error: unrecognized arguments: /var/spool/postfix/etc/tokens/username@domain.onmicrosoft.com" when I run the scro[t

sasl-xoauth2-tool get-token outlook --client-id=(Application (client) ID from AAD) \ --tenant=(Directory (tenant) ID from AAD) \ /var/spool/postfix/etc/tokens/username@domain.onmicrosoft.com

Is there an option I need to use for PATH_TO_TOKENS_FILE ?

tarickb commented 1 year ago

Can you try this instead?

sasl-xoauth2-tool get-token --client-id=(Application (client) ID from AAD) --tenant=(Directory (tenant) ID from AAD) outlook /var/spool/postfix/etc/tokens/username@domain.onmicrosoft.com

(Notice how outlook moves to right before the token file path.)

Also make sure you're escaping or quoting where necessary.

ridebadger commented 1 year ago

Thank you, moving outlook to preceed the path worked.