A client has been developing a c# MVC program to communicate with the D2L platform using the Valence extensibility libraries. They are able to authenticate their user Id with the platform when registering a new app. However they are facing a problem with the ‘whoami’ API call.
According to the ‘basic’ program in Github, there is a session variable called “valenceUserContext” which get values from the following command after authenticating with the platform.
Session["valenceUserContext"] = vAppcontext.CreateUserContext( Request.Url, vHost );
Unfortunately there were no values returned from the above command (Error is cannot peform binding on a null reference). Do they have to set permissions explicitly for this call in order to get the necessary values returned to the session variable?