Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

MBE using the MCK SDK however I keep getting, "basicAuth undefined"

edited Mar 20, 2018 7:00AM in Digital Assistant & Mobile 4 comments

Summary

MBE using the MCK SDK however I keep getting, "basicAuth undefined"

Content

Hi, I have been trying to sign into my MBE using the MCK SDK however I keep getting, "basicAuth undefined" returned from the Javascript. Here's the msconfig.js code shown below:

 

Note: this example is derived from Chris Muirs DZone article:

https://dzone.com/articles/how-to-mash-up-jet-and-mcs-mobile-apps

 

 

define(['mcs'], function(mcs) { 

 

    var applicationkey = "dsfdsf";

 

    var mcs_config = {

      logLevel: mcs.LOG_LEVEL.INFO,

      logHTTP: true,

     mobileBackends: {

        my_mbe: {

          default: true,

          baseUrl: "https://...oraclecloud.com:443",

          applicationKey: applicationkey,

          authorization: {

            basicAuth: {

              backendId: "...",

              anonymousToken: ".."

            }

          }

        }

      }

    };

 

    function McsConfig() {

         var self = this;

         mcs.MobileBackendManager.platform = new mcs.BrowserPlatform();

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!