Hi! I am trying to develop a LinkedIn Authorization Provider with OAuth2 module. The web shows the LinkedIn page login. The problem occurs when I click the login button, dnn says an internal error has occured. The log page of my dnn application shows:
AssemblyVersion:7.3.4
PortalID:0
PortalName:My Website
UserID:-1
UserName:
ActiveTabID:55
ActiveTabName:Home
RawURL:/Login?state=LinkedIn&code=AQSKk4E8YSvs7kfydNvjnaEpaZ3C2GRFxNw94UhtMVmoCIAD46eYmBKMRZYdNpWRBo5oEAOK_8JqHOdb5OhT0c-baiUceBAEpyep2iOiVhUqWRSzofY&state=LinkedIn
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:
UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:ed72a4c6-d35c-44b7-bae2-e0964786f3b9
InnerException:Value cannot be null. Parameter name: input
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.Web.Script.Serialization.JavaScriptSerializer.Deserialize
StackTrace:
Message:
DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null. Parameter name: input ---> System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject(String input) at DotNetNuke.Authentication.LinkedIn.Components.LinkedInClient.GetToken(String responseText) at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.ExchangeCodeForToken() at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.AuthorizeV2() at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.Authorize() at DotNetNuke.Services.Authentication.OAuth.OAuthLoginBase.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Nombre del servidor: RD000D3A20C010
I believe that the problem appears when LinkedIn returns the JSON file.
How can I fix it?
Thanks.