6 Replies Latest reply on Jun 3, 2014 10:02 AM by adam RSS
    rajgs Apprentice

    Redirect to a new mashup through service

    Hi,

    I want to redirect to a new mashup from an existing mashup based on a condition. How can i do this from a service? This is for a login page.On Login button click of mashup I have to check if a user exists in database and navigate to a new page if it is a valid user.

      • Redirect to a new mashup through service
        adam Creator

        Hi Raj,

         

        What type of system are you using for authentication? Are you authenticating with a database (e.g. MySQL) or a directory service (e.g. LDAP)?


        Thanks,

        Adam



          • Redirect to a new mashup through service
            rajgs Apprentice

            Hi Adam,

            Yes i am planning to authenticate with a database(Oracle). I have created a Login Mashup. On click of Login/Sign in button i query whether the entered user id and password is present in the database. If yes i want to naviagete to a new mashup, or else i would want to show an error message of Authentication failure.

            Regards,

            Raj

             

              • Redirect to a new mashup through service
                adam Creator

                Raj,

                 

                I don't know that authenticating from a Mashup will work for your use case. In order to view your login Mashup, a User would need to authenticate first with ThingWorx. That seems like a less than ideal user experience given that a User will need to authenticate twice.

              • Redirect to a new mashup through service
                martingal Explorer

                Hello Guys I find this post interesting, I'm working with the same, I did a service that checks if the user is in the database result as otp (0|1) and then in the mashups I receive a parameter according to the user, my question is if  I can send the parameter into the mashup encrypted ?

                 

              • Redirect to a new mashup through service
                joseazu Newbie

                Hi,
                Not sure if this got solved, but we created two services, one that looks for the user in the database first. Depending on the result (true/false), we pass this as a parameter to another service that returns a string, this is the name of the mashup we want to navigate to, with the help of the Navigation widget.
                Now, we are wondering if is it possible to navigate passing a mashup parameter through the navigation widget or via some other way.

                Thanks,
                Jose

                 



                • Redirect to a new mashup through service
                  adam Creator

                  Jose,

                   

                  You can indeed pass Mashup Parameters using the Navigation widget. Since you'll be dynamically assigning the Mashup to the Navigation, you'll need to select a Mashup and bind each parameter (parameters will appear as properties of the Navigation widget) then repeat for the next possible Mashup.


                  Let me know if you need further information or if you would like to have a quick call and have me show you.


                  Thanks,

                  Adam