Closed norbusan closed 5 months ago
Thanks for the tool! I was able to get the initial token by passing --tenant=TENANT_ID to the sasl-xoauth2-tool get-token outlook ....
--tenant=TENANT_ID
sasl-xoauth2-tool get-token outlook ...
The token file is updated and contains access and refresh token.
I then try to test the renewal
$ sasl-xoauth2-tool test-token-refresh token-file ... Token refresh failed.
with the error message being
AADSTS7000012: The grant was obtained for a different tenant.
I tried the following steps:
--tenant
test-token-refresh
tenant_id
tenant
Looking at the code, the refresh etc is done by /usr/lib/sasl-xoauth2/test-config but that doesn't support --tenant.
/usr/lib/sasl-xoauth2/test-config
How am I supposed to make sure that a correct tenant is used?
Thanks
Closing this issue, I was blind.
The tenant id needs to be put into the config file into token_endpoint configuration.
token_endpoint
Thanks for the tool! I was able to get the initial token by passing
--tenant=TENANT_ID
to thesasl-xoauth2-tool get-token outlook ...
.The token file is updated and contains access and refresh token.
I then try to test the renewal
with the error message being
I tried the following steps:
--tenant
to thetest-token-refresh
sub-command -- not supportedtenant_id
ortenant
into the config file but all these didn't have any effect.Looking at the code, the refresh etc is done by
/usr/lib/sasl-xoauth2/test-config
but that doesn't support--tenant
.How am I supposed to make sure that a correct tenant is used?
Thanks