1 out of 1 rated this helpful - Rate this topic

User object

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The feature described in this topic is available only in preview. To use this feature and other new Windows Azure capabilities, sign up for the free preview.


Represents the current requesting user.

This object contains the following members:

Methods

 

Method name Return Type Description

getIdentities

object

Returns a JavaScript Object Notation (JSON) object that contains identity information, in the following format:

{ "providerName": {
    "userId": "user_id_value",
    "accessToken": "access_token_value",
    "accessTokenSecret": "access_token_secret_value"
    }
}

The access_token_secret_value may not be available for all identity providers.

Properties

 

Property name Type Description

accessTokens

object

A JavaScript Object Notation (JSON) object that contains the access token, in the following format:

{ providerName: "access_token_value" }

level

string

The level of authentication, which can be one of the following:

  • admin: the master key was included in the request.

  • anonymous: a valid authentication token was not provided in the request.

  • authenticated: a valid authentication token was provided in the request.

userId

string

The user ID of an authenticated user. When a user is not authenticated, this property returns undefined.

Scripts are always passed an instance of the user object, regardless of whether the operation is authenticated.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.
facebook page visit twitter rss feed newsletter