Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
add AnonymousCloudCredentials class
Browse files Browse the repository at this point in the history
  • Loading branch information
guangyang committed Feb 27, 2014
1 parent 033a9f8 commit 568699c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/azure.js
Expand Up @@ -630,6 +630,7 @@ exports.StorageServiceSettings = azureCommon.StorageServiceSettings;
// Credentials
exports.CertificateCloudCredentials = azureCommon.CertificateCloudCredentials;
exports.TokenCloudCredentials = azureCommon.TokenCloudCredentials;
exports.AnonymousCloudCredentials = azureCommon.AnonymousCloudCredentials;
exports.SharedAccessSignature = require('./services/blob/internal/sharedaccesssignature');
exports.SharedKey = require('./services/blob/internal/sharedkey');
exports.SharedKeyLite = require('./services/blob/internal/sharedkeylite');
Expand Down
1 change: 1 addition & 0 deletions lib/common/lib/common.js
Expand Up @@ -50,6 +50,7 @@ exports.ConnectionStringParser = require('./services/connectionstringparser');
// Credentials
exports.CertificateCloudCredentials = require('./services/credentials/certificateCloudCredentials');
exports.TokenCloudCredentials = require('./services/credentials/tokenCloudCredentials');
exports.AnonymousCloudCredentials = require('./services/credentials/anonymousCloudCredentials');

// Other filters
exports.LinearRetryPolicyFilter = require('./services/filters/linearretrypolicyfilter');
Expand Down
38 changes: 38 additions & 0 deletions lib/common/lib/services/credentials/anonymousCloudCredentials.js
@@ -0,0 +1,38 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

/**
* Creates a new AnonymousCloudCredentials object.
*
* @constructor
*/
function AnonymousCloudCredentials(credentials) {
// empty body on purpose
}

/**
* Signs a request with the Authentication header.
*
* @param {WebResource} The webresource to be signed.
* @param {function(error)} callback The callback function.
* @return {undefined}
*/
AnonymousCloudCredentials.prototype.signRequest = function (webResource, callback) {
// empty body on purpose
callback(null);
};

module.exports = AnonymousCloudCredentials;

0 comments on commit 568699c

Please sign in to comment.