Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Google Authentication ProjectGoogle Authentication Project
Previous
 
Next
New Post
12/18/2014 9:39 AM
 

Hello,

  I am having a bugger of a time trying to implement the DotNetNuke Google Authentication Project module. I have searched for many hours trying to find complete and clear documentation on how this module works, and I am falling short.

  I have installed the GAP module and can successfully return a string from the Google API. However, DNN errors with the following:

AssemblyVersion:7.3.3
PortalID:0
PortalName:Southeastern Regional Vocational Technical High School
UserID:-1
UserName:
ActiveTabID:88
ActiveTabName:ADlogin
RawURL:/sersd/ADlogin?state=Google&code=4/PuKLdUTYEI94nA_2AMdatUjytl2xTvrGq-WGlL418D4.4nSVeAMMHPITJvIeHux6iLa7_ga7lAI
AbsoluteURL:/sersd/Default.aspx
AbsoluteURLReferrer:
UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:506c157a-4954-4e55-b20c-90ff0723ca72
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 DotNetNuke.Authentication.Google.Components.GoogleClient.GetToken(String responseText) at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.ExchangeCodeForToken() at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.AuthorizeV2() at DotNetNuke.Services.Authentication.OAuth.OAuthLoginBase. (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.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:
Server Name: SE-Webserver

I have found documentation on installing the module and registering with Google Developer, however it is very unclear to me, what DNN or the GAP module does when the Google authorization code/string is returned. I know there are further steps that need to be taken such as 'Exchange code for token' and 'Use token to call Google API's" as part of this process. My questions range from "Should my return uri listed in the Google Developer console be the same as my login page or is it the register page?" to "Is a new user created in DNN once authenticated by Google?" to "How can I manage DNN roles using Google Groups?".

As a Google school, we are attempting to implement a common document repository and calendaring system that will use Google contacts for view, edit and create rights in DNN. I have added Google Drive to our site using the iFrame module and if a user is signed into Google in another browser tab, permissions flow through the iFrame module to Google Drive. I wish however, to be able to grant rights to pages and modules the same way.

Can you please set my in the right direction?

 
New Post
12/19/2014 10:42 AM
 
please see http://www.aubrett.com/InformationTec... to set up google, and http://www.aubrett.com/InformationTec... to configure the google authentication provider within DNN

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/22/2014 7:15 AM
 

Hello.... and thank you for your response.

In my endless searching, I had already come across these pages. As I stated earlier, I believe the provider is reaching Google and Google is responding, but I am receiving the above error. Also, these pages do not explain anything about the process and what I am to expect with users and roles.

Is there no better, more detailed description of the process of using Google as an authentication provider? Without such, I cant further troubleshoot my event log error....

 
New Post
12/22/2014 8:21 AM
 
Oh..... I forgot to add that using Google to Register with the site gives the same basic error...

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 DotNetNuke.Authentication.Google.Components.GoogleClient.GetToken(String responseText)
at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.ExchangeCodeForToken()
at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.AuthorizeV2()
at DotNetNuke.Services.Authentication.OAuth.OAuthLoginBase. (EventArgs e)
 
New Post
12/23/2014 1:02 PM
 
Update....

I started with a fresh server running IIS 7.5/Win Server 2008 R2/MSSQL 2012/ .NET 4.0. I followed Chris Hammonds 4 part video installation to the letter. This is the only website and database on the server.

With a fresh new working default install of DNN 7.3.4, I enabled Google Authentication and input my credentials from Google developer into the module. As before, I get the Google consent form when trying to log in or register using Google+ services.

Also as before, I get the exact same error when Google returns its data.

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 DotNetNuke.Authentication.Google.Components.GoogleClient.GetToken(String responseText)
at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.ExchangeCodeForToken()
at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.AuthorizeV2()
at DotNetNuke.Services.Authentication.OAuth.OAuthLoginBase. (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 ---

I am at my wits end... Are there no other configurations required in DNN? Please assist......
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Google Authentication ProjectGoogle Authentication Project


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out