MicrosoftDocs / azure-sphere-issues

Creative Commons Attribution 4.0 International
11 stars 8 forks source link

Token generated with this method seems invalid #285

Closed sw-ms-imranbhadelia closed 3 years ago

sw-ms-imranbhadelia commented 3 years ago

We follow same steps to get token. and after fixing some issue mentioned in this page we got token. But its not valid. We used https://jwt.ms/ to verify token but it gives InvalidTokenError

Moreover if we use same token to call API given at https://docs.microsoft.com/en-us/rest/api/azure-sphere/, it keep giving 400 bad request. So seems like Token is not valid

Also azsphere register-user --new-user doesnt work; we got it working with azsphere register-user --newuser

Any resolution on this?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

AshokPeddakotla-MSFT commented 3 years ago

@sw-ms-imranbhadelia Thanks for the feedback! We are currently investigating and will update you shortly.

AshokPeddakotla-MSFT commented 3 years ago

@sw-ms-imranbhadelia Which authentication method are you using? client secret or client cert method? Looks like you are using old CLI. Please use the latest version and try again.

bawilless commented 3 years ago

@sw-ms-imranbhadelia to get the latest CLI, you need to download and install the latest Azure Sphere SDK, you can download the installer here: https://aka.ms/AzureSphereSDKDownload/Windows

AshokPeddakotla-MSFT commented 3 years ago

@sw-ms-imranbhadelia As suggested please use the latest CLI and update. Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.