Description
Token365 is a command-line tool that allows you to request an OAuth2 ACCESS TOKEN with MS365.
The request can be made with an app protected by certificate authentication or by ‘secret’ (for consuming application rights) or by account/password (for consuming delegate rights). You can also request token with authorization code or refresh token.
If you use delegate access,TOKEN365 will show you the ACCESS TOKEN and the REFRESH TOKEN.
TOKEN365 is developed in C# with .net 8.0 and compiled for Windows.
Syntax
AuthentType: -a secret|cert|account|secret-account|cert-account|secret-code|cert-code|secret-refresh|cert-refresh <Mandatory>
TenantID: -t e8a3d399-ki0d-4b85-9f26-xxxxxxxx <Mandatory>
ClientID: -c 2ji0d44d-a616-43bd-956b-xxxxxxxx <Mandatory>
Web proxy: -p http://proxy_name:tcp_port <Optional>
Scope: -s https://graph.microsoft.com/.default (offline_access is automaticaly added) <Optional>
Secret: -k AOq8Q~thsdf3zYxkV4BTq1qdsdYxxxxxxxx <Mandatory if AuthentType is secret|secret-account|secret-code|secret-refresh>
Pfx file: -x file.pfx <Mandatory if AuthentType is cert|cert-account|cert-code|cert-refresh>
Login: -l user@domain.com <Mandatory if AuthentType is account|secret-account|cert-account>