question

ImranBhadelia-6395 avatar image
0 Votes"
ImranBhadelia-6395 asked AshokPeddakotla-MSFT commented

Accessing Azure Sphere Public API with ADD App


Token is not valid.

Followed all steps mentioned in below link

https://docs.microsoft.com/en-us/azure-sphere/deployment/authenticate-service-principal

Getting token successfully, but its not valid token as per https://jwt.ms/ and Azure Public API doesnt give response.

Anyone have this working ?

Also have question. As mentioned in document to create user with format <ObjectID>@<TenantID>.onmicrosoft.com, here objectid of the Azure Sphere Public API (7c209960-a417-423c-b2e3-9251907e63fe) ?

Imran

azure-sphere
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AshokPeddakotla-MSFT avatar image
0 Votes"
AshokPeddakotla-MSFT answered AshokPeddakotla-MSFT commented

@ImranBhadelia-6395

Getting token successfully, but its not valid token as per https://jwt.ms/ and Azure Public API doesnt give response.

Could you please confirm, if you have followed and completed all the prerequires126045-image.png




Also have question. As mentioned in document to create user with format <ObjectID>@<TenantID>.onmicrosoft.com, here objectid of the Azure Sphere Public API (7c209960-a417-423c-b2e3-9251907e63fe) ?


Object ID referring here is the unique ID of the service principal object associated with this application.


image.png (11.6 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ImranBhadelia-6395 Wanted to follow up with you to understand whether the above information helped. Please let me know if you have any queries.

1 Vote 1 ·

Yes we do. ObjectID we were talking of Azure Sphere Public API.

All Good now. We are able to get data using the token. However https://jwt.ms/ is still not able to validate the token, is it fine?

Imran

0 Votes 0 ·

@ImranBhadelia-6395 Glad to hear that you are able to get data using the token.
Yes, The application ID for the Azure Sphere Public API is 7c209960-a417-423c-b2e3-9251907e63fe.

Prerequisites section of the documentation has all the information on how to get the ID.

127084-image.png

Also, You have mentioned, https://jwt.ms/ is still not able to validate the token I'm not familiar with this tool. As long you as you are able to get the data the token is fine.

Do let us know if you have any other queries. We would be happy to assist you.

If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.

0 Votes 0 ·
image.png (11.6 KiB)