Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Christopher Ingram Reid
    MBE using the MCK SDK however I keep getting,...
    Topic posted March 19, 2018 by Christopher Ingram ReidGreen Ribbon: 100+ Points, last edited March 20, 2018 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged Mobile 
    28 Views, 4 Comments
    Title:
    MBE using the MCK SDK however I keep getting, "basicAuth undefined"
    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();

             mcs.MobileBackendManager.setConfig(mcs_config);

             self.MobileBackend = mcs.MobileBackendManager.getMobileBackend("my_mbe");

             self.MobileBackend.setAuthenticationType("basicAuth");      

         };

         return new McsConfig();  

    });

    Comment