renakre
renakre

Reputation: 8291

The remote server returned an error: (403) Forbidden. - RESULT_INVALID_SIG

Around 2 months ago, I applied for "App Developer Key" for D2L. My university will migrate to D2L soon, and they already set up it.

So, I applied for "domain limited" version. Now, when I check the system "Is Approved?" field is "True", which means, I think, I should be able to use it. I updated the Host, AppId, AppKey, UserId, UserKey fields in the sample "Getting Started" C# project of D2L (it is working with default values). But when I run it, I get an error:

The remote server returned an error: (403) Forbidden.

When I checked the details the error is RESULT_INVALID_SIG. And, this type of error is returned "when the signature or id was invalid, typically this should trigger a reauthentication." So, what do you think? Is this because my role is student rather than admin? Or is this about AppId & AppKey?

Upvotes: 1

Views: 1699

Answers (1)

Viktor Haag
Viktor Haag

Reputation: 3418

This could be because you provided values for the UserId and UserKey fields for the sample, and those tokens were not appropriate for the host+AppID/Key pair that you have.

Try filling in the just the host field for your LMS, the App ID and Key fields with the App credentials you have, and then see if you can get the sample going that way:

  • You should be able to make a "Get Versions" call with no user credentials at all (because you can make that call anonymously.

  • To retrieve user credentials that match your app + AppID/Key pair, provide just the host, and app credentials, and then 'Authenticate' -- the authentication process should generate a UserID/Key pair and populate those fields -- you can then cache all those credential values and use them with the same app/LMS combination going forward (as long as your user tokens don't expire).

Upvotes: 1

Related Questions