Code Monkey home page Code Monkey logo

Comments (4)

northtyphoon avatar northtyphoon commented on July 18, 2024

The values can be number or string. If you check the official adal go library, you can see how they parse the payload

https://github.com/Azure/go-autorest/blob/d3f8f8a6cdf252e58b19b99523c25c5ad6664ac7/autorest/adal/token.go#L1139

from acr.

andreygoran avatar andreygoran commented on July 18, 2024

Hi @northtyphoon,

According to documentation https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows#schema:

In json responses, all primitives will be of type string, and missing or inapplicable values are always included but will be set to an empty string.

From the client's point of view, all Managed Identity endpoints (http://169.254.169.254/metadata/identity/oauth2/token) are the same service, no matter if called from a VM, Container Instance, or Container Registry Task. So it would be logical to return data in the same format. Which is actually also documented here:

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2021-12-13/imds.json

from acr.

northtyphoon avatar northtyphoon commented on July 18, 2024

@andreygoran we have deployed a fix to change the property to string. Can you try it again?

from acr.

andreygoran avatar andreygoran commented on July 18, 2024

@andreygoran we have deployed a fix to change the property to string. Can you try it again?

I tested it, and it is fixed now. Thank you!

from acr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.