GithubHelp home page GithubHelp logo

Comments (3)

markcowl avatar markcowl commented on May 31, 2024

Looking at the code path, if EMULATED=true, isEmulated returns true, even if your HOST setting doesn't match the devstorage hosts. Should use the credetnails instead to determine, and calculate the host URI and usePathStyleUri if they are not provided

from azure-sdk-for-node.

markcowl avatar markcowl commented on May 31, 2024

parse credentials to decide what the uri style and uri should be

from azure-sdk-for-node.

perrysk-msft avatar perrysk-msft commented on May 31, 2024

In our latest release there are convenience methods in azure.js that make creating a client easier through the new auth scheme.

Also note:

  • isEmulated is now removed (it was difficult to determine if the client was emulated if devstore credentials were directly passed).
  • In addition to the environment variable EMULATED, there is a convenience method to create dev store credentials to pass in.
  • The order in which credentials are assessed is consistent: If parameters are passed in, they and they alone are honored.
    o There is no mixing (For example, if you pass in host you won't get the access key from your environment variable).
    o If no parameters are passed in, the environment variables are used.
    Within both those strategies, the order of evaluation is emulator (in the case of EMULATED env var only), connection string, account/key or sas, anonymous.
    o If account/key and sas are passed in, an error is thrown indicating the credentials are invalid.

Please refer to the ChangeLog for a complete list of added features and fixes.
https://github.com/Azure/azure-storage-node/blob/master/ChangeLog.txt

Download the latest Node.js Module
https://www.npmjs.org/package/azure-storage

Get the source code
https://github.com/Azure/azure-storage-node

Read our blog post: Microsoft Azure Storage Client Module for Node.js v. 0.2.0 http://blogs.msdn.com/b/windowsazurestorage/archive/2014/06/26/microsoft-azure-storage-client-module-for-node-js-v-0-2-0.aspx

from azure-sdk-for-node.

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.