Users [class]

Extends: Data

Access: protected

Members

Instance members

Name Return type Description
changePassword(username, password, newPassword, keepTokens) Promise Changes the password of a user.
changePassword(username, password, newPassword, keepTokens, [success], [error]) Changes the password of a user.
clearAuthorization() Clears the authentication token that the Backend Services JavaScript SDK currently uses. Note that this is different than logging out, because the current authorization token is not invalidated.
currentUser([success], [error]) Gets information about the user that is currently authenticated to the Backend Services JavaScript SDK. The success function is called with currentUserResult.
currentUser() Promise Gets information about the user that is currently authenticated to the Backend Services JavaScript SDK. The success function is called with currentUserResult.
linkWithADFS(userId, accessToken, [success], [error]) Links a Telerik Backend Services user account to an ADFS access token.
linkWithADFS(userId, accessToken) Promise Links a Telerik Backend Services user account to an ADFS access token.
linkWithFacebook(userId, accessToken, [success], [error]) Links a Backend Services user with a Facebook access token.
linkWithFacebook(userId, accessToken) Promise Links a Telerik Backend Services user account to a Facebook access token.
linkWithGoogle(userId, accessToken, [success], [error]) Links a Telerik Backend Services user account to a Google access token.
linkWithGoogle(userId, accessToken) Promise Links a Telerik Backend Services user account to a Google access token.
linkWithLiveID(userId, accessToken) Promise Links a Telerik Backend Services user account to a Microsoft Account access token.
linkWithLiveID(userId, accessToken, [success], [error]) Links a Telerik Backend Services user account to a Microsoft Account access token.
linkWithTwitter(userId, token, tokenSecret, [success], [error]) Links a Telerik Backend Services user to a Twitter token. A secret token needs to be provided. * Links a Backend Services user with a Twitter token. A secret token needs to be provided.
linkWithTwitter(userId, token, tokenSecret) Promise Links a Telerik Backend Services user to a Twitter token. A secret token needs to be provided.
login(username, password) Promise Logs in a user using a username and a password to the current Backend Services JavaScript SDK instance. All requests initiated by the current Backend Services JavaScript SDK instance will be authenticated with that user's credentials.
login(username, password, [success], [error]) Logs in a user using a username and a password to the current Backend Services JavaScript SDK instance. All requests initiated by the current Backend Services JavaScript SDK instance will be authenticated with that user's credentials.
loginWithADFS(accessToken) Promise Log in a user using an ADFS access token.
loginWithADFS(accessToken, [success], [error]) Log in a user using an ADFS access token.
loginWithFacebook(accessToken, [success], [error]) Log in a user using an Facebook access token.
loginWithFacebook(accessToken) Promise Log in a user using an Facebook access token.
loginWithGoogle(accessToken) Promise Log in a user using a Google access token.
loginWithGoogle(accessToken, [success], [error]) Log in a user using a Google access token.
loginWithLiveID(accessToken, [success], [error]) Log in a user using a Microsoft Account access token.
loginWithLiveID(accessToken) Promise Log in a user using a Microsoft Account access token.
loginWithTwitter(token, tokenSecret, [success], [error]) Log in a user with a Twitter token. A secret token needs to be provided.
loginWithTwitter(token, tokenSecret) Promise Log in a user with a Twitter token. A secret token needs to be provided.
logout() Promise Log out the user who is currently logged in.
logout([success], [error]) Log out the user who is currently logged in.
register(username, password, userInfo) Promise Registers a new user with username and password.
register(username, password, attrs, [success], [error]) Registers a new user using a username and a password.
resetPassword(user, [success], [error]) Sends a password reset email to a specified user.
resetPassword(user) Promise Sends a password reset email to a specified user.
setAuthorization(token, tokenType, principalId) Sets the token and token type that the Telerik Backend Services JavaScript SDK will use for authorization.
setPassword(setPasswordObject, [success], [error]) Set a new password for a user using a password reset code.
setPassword(setPasswordObject) Promise Set a new password for a user using a password reset code.
setPassword(setPasswordObject) Promise Set a new password for a user using a password reset code.
setPassword(setPasswordObject, [success], [error]) Set a new password for a user using a password reset code.
unlinkFromADFS(userId) Promise Unlinks a Telerik Backend Services user account from the ADFS token that it is linked to.
unlinkFromADFS(userId, [success], [error]) Unlinks a Telerik Backend Services user account from the ADFS token that it is linked to.
unlinkFromFacebook(userId) Promise Unlinks a Telerik Backend Services user account from the Facebook token that it is linked to.
unlinkFromFacebook(userId, [success], [error]) Unlinks a Telerik Backend Services user account from the Facebook token that it is linked to.
unlinkFromGoogle(userId, [success], [error]) Unlinks a Telerik Backend Services user account from the Google access token that it is linked to.
unlinkFromGoogle(userId) Promise Unlinks a Telerik Backend Services user account from the Google access token that it is linked to.
unlinkFromLiveID(userId) Promise Unlinks a Telerik Backend Services user account from the Microsoft Account access token that it is linked to.
unlinkFromLiveID(userId, [success], [error]) Unlinks a Telerik Backend Services user account from the Microsoft Account access token that it is linked to.
unlinkFromTwitter(userId) Promise Unlinks a Telerik Backend Services user account from the Twitter access token that it is linked to.
unlinkFromTwitter(userId, [success], [error]) Unlinks a Telerik Backend Services user account from the Twitter access token that it is linked to.

Static members

Name Return type Description
ResultTypes Defines the result types that can be returned by users functions.
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.