Authenticate with OAuth 2 .Net example code does not work
Following the tutorial here:
https://developer.box.com/docs/authenticate-with-oauth-2
Simple enough, Box returns the code to my redirect location, except the following line (obviously) fails:
this.BoxAuthenicatedSession = await
this._boxClient.Auth.AuthenticateAsync(code);
this._boxClient has not been instantiated anywhere in the tutorial, hence it's null, hence it crashes with Object reference not set .... error.
Please tell me I am missing something obvious here.
-
Anyone having the same issue can find the answer here (on StackOverflow - of course):
https://stackoverflow.com/questions/31168682/how-to-use-box-api-in-asp-net-web-application
Finding the Box SDK documentation incredibly lacking in general.
Please sign in to leave a comment.
Comments
1 comment