Layer7 API Management

Expand all | Collapse all

how to retrieve access_token for  Cordova-Android

  • 1.  how to retrieve access_token for  Cordova-Android

    Posted 09-24-2017 08:20 PM

    As part of the  MAG request lifecycle, after the device gets registered and authentication being done, to be followed are the id_Token (JWT). When trying to use  OAUTH, we are in the need to retrieve the access_token and Refresh_token.

    Do we have an API/policy from OTK to retrieve the access_token for Cordova- Android SDK 1.4 Platform

     

    Thank you



  • 2.  Re: how to retrieve access_token for  Cordova-Android

    Broadcom Employee
    Posted 09-26-2017 06:51 PM

    Hello, 

     

    The Android SDK and the Cordova plugin will support retrieving access_token via MASUser.getAccessToken method in our upcoming 1.5 release. Stay tuned as it will happen soon! 



  • 3.  Re: how to retrieve access_token for  Cordova-Android

    Posted 09-26-2017 06:58 PM

    Hi Ram,

     

    Thank you for the update.  Do we have any alternative for clients on 1.4 to have this for their implementation  ?

    I meant to say  querying the OTK DB to retrieve the Access token based on the mag_identifier  ?



  • 4.  Re: how to retrieve access_token for  Cordova-Android

    Posted 09-26-2017 07:11 PM

    Are you looking for Cordova interface only?


    Do you have the use case from your client? The SDK hides all the complexity of the token lifecycle and management, to return the token from the SDK, your client may need to implement complicated logic to manage the token.