You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows 10, we use a xoauth client configuration to access a registered Xero application. The xoauth client configuration is set to use the authorisation_code grant type, and includes the following Xero scopes:
openid
offline_access
email
profile
accounting.settings.read
accounting.contacts.read
accounting.transactions.read
This configuration was working fine until a few days ago. Now, when I use xoauth to connect, although the Xero API successfully returns an access token + refresh token + identity token as before, xoauth fails with the following error:
Storing tokens in local keychain
failed to save tokens to keychain: The stub received bad data.
The only configuration which now seems to be working is:
Both the Xero application and the xoauth configuration are configured to use the PKCE grant type
The xoauth configuration does not include the secret (optional with PKCE)
The xoauth configuration does not include the offline_access scope
With the above combination, xoauth stores the tokens successfully in the keychain. But since there is no refresh token to store (Xero returns an empty value), then there is no option to refresh and the authorisation period is limited to 30 minutes.
Is anyone else affected by this error, or can anyone advise if the above configuration is incorrect?
Many thanks!
The text was updated successfully, but these errors were encountered:
Hey I've taken a look into this issue on Windows. In testing, we've identified that the Windows Credentials API only supports storing approx 2.5kb in a password field. The full token set (refresh token, access token, id token) with a number of scopes exceeds this size (just!), which causes the "stub received bad data" error.
We've released v1.1.0 which works around this problem. Take it for a spin!
On Windows 10, we use a xoauth client configuration to access a registered Xero application. The xoauth client configuration is set to use the authorisation_code grant type, and includes the following Xero scopes:
This configuration was working fine until a few days ago. Now, when I use xoauth to connect, although the Xero API successfully returns an access token + refresh token + identity token as before, xoauth fails with the following error:
The only configuration which now seems to be working is:
With the above combination, xoauth stores the tokens successfully in the keychain. But since there is no refresh token to store (Xero returns an empty value), then there is no option to refresh and the authorisation period is limited to 30 minutes.
Is anyone else affected by this error, or can anyone advise if the above configuration is incorrect?
Many thanks!
The text was updated successfully, but these errors were encountered: