We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to use oAuth in Grid with ejDataManager

Data Manager with OAuth Support

 

Problem:

How can we use OAuth support in ej.DataManager?

Solution:

Here we have passed the “Authorization” token through headers (Customer Http Headers) property in ej. DataManager to authenticate the users. For example , we have used “OAuth1.0” in below code . So Please ensure followings:

 

 

OAuth 1.0 requires client to send two security token for each API call , and the use both to generate the signature.
 
Note: Signatures are not required for the actual API calls once the token has been generated in OAuth2.0. It has only one security token.
 
 
For Your convenience we have attached the sample and the sample can be downloaded from the following link:
 
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ejDataManager_with_oAuth-314204440.zip
 

 Steps to execute the sample as follows:
 
1. Run the sample and Register the credential. The “Register Module” is entry level of this application. Each user must be register in his credential in this module.
 

Figure 1 Register Module

 

Note: Password must be in combination of one alpha (capital and small) , numeric and non – numeric (minimum 6 letters)
 
 
2. success full register 

Figure 2 Registration success page

 

3. successfully login oAuth pass authorize token

Figure 3 Check authentication token

 

4. The “DataMangerModule” we can access authorized through the ej. DataManager.

Figure 4 Access got throw dataManager

Article ID: Published Date: Last Revised Date: Platform: Control:
8966 07/13/2018 07/13/2018 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.