GX16
Generator c #
I'm putting together a WEB / SD system that uses GAM External Authentication: version 2.0 in GX16. The scenario is that I have n external systems each with their users and keys. I have to build a new one keeping users and keys of each of the systems already in use.
I made the external login work through webservices and WEB environment without problems, with the example that the GAM brings in GAMExampleLogin and I was able to obtain &GAMExampleSDTApplicationData
with data from the external system in the new system.
Now I want to do the same thing in the SD environment, I saw that it is different what the factory GAM brings in the GAMSDLogin but I could log in with the external system.
What I could not get the data from the external system, I do this:
GeneXus.SD.Actions.LoginExternal(GAMAuthenticationTypes.ExternalWebService, &User, &Password, &LoginExternalAdditionalParameters)
&GAMSession=GamSession.Get(&GAMError) //ACA SE CAE LA APP SD
&ApplicationData = &GamSession.GetApplicationData() //ACA NO LLEGA NUNCA
Then I can not get the data associated with the external user.
Any help that may be happening? Maybe I'm not doing the correct way in SD to get the data associated with the user logged in SD? Why CRASH the SD app once you login when you request the GamSession object? Could it be that the way to ask for it is wrong?
Thank you very much
Bruno