0
votes

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?

1
You shouldn't need to set any permissions for the basic sample. Could you use fiddler (as described here) and contact [email protected]? Thanks. - Jacob Parker

1 Answers

0
votes

There's no mention of user privacy controls for this route in the documentation. There's an API Test Tool that can be used to check the Host, Port, App id, and key. If that works for your client, they should double check these variables in their configuration.