cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CDC - How to get user information via gigya JS Plugins for edit.Profile

mstachel
Explorer
0 Kudos
1,608

Hello CDC community,

we have setup a demo web site for using the CDC screen sets and in order to test the different function.. This is working fine for the Login & Registration Screen. After registration the user information is transferred to the CDC successfully.

Now we want to implement the default screen set "Default-ProfileUpdate". The popuo is triggered but not user information is displayed after Login. The system does not recognise which user has logged in. Profile parameters are empty and are not updated.

Questions:

- How can we let the system know which users is currently logged in?

- How can we get information from the loginlike first name / email etc.

- How do we know that the user is logged in successfully?

Here is an overview of the gigya plugins we are using right now for the Login / Registration / Edit Profile:

<?php
    

      if(isset($_POST['button1'])) {

        echo "<script type=\"text/javascript\">

        gigyaPlugins.login();
      

        </script>";

      }

      if(isset($_POST['button2'])) {

        echo "<script type=\"text/javascript\">

        gigyaPlugins.register();

        </script>";

      }

      if(isset($_POST['button3'])) {

        echo "<script type=\"text/javascript\">

        gigyaPlugins.editProfile();

        </script>";

      }

  ?>

Which information do we need to pass to the "edit_Profile" plugin in order to identify the user?

Thanks for your support.

Cheers,

Marco

Accepted Solutions (0)

Answers (3)

Answers (3)

GabrielGomezPad
Participant
0 Kudos

Hello Marco,

have you verified in the console if CORS problems arise? I was facing a similar problem and I got to solve it by doing correct settings in "Trusted Site URLs" on Site Settings.

Hope it helps,

Kind Regards

Gabriel

mstachel
Explorer
0 Kudos

Hello Victor,

thanks for the quick reply.

As you mentioned the Profile screen is not populated with the users information. Once I have maintained the field manually, I get an error message:

But I have successfully logged in....

0 Kudos

Hi Marco,

If there's no information in the profile form is probably because there's no active session. The webSDK automatically populates this form with the data of the logged-in user.

I'd recommend you to use gigya.showDebugUI(); in the browser console to see what calls are happening under the hood and why the session is not stablished.

Feel free to comment here with your findings,

Thank you