YAFLogo

Posted by: Zero2Cool - Thursday, 1 August 2013 20:08:55
Using the latest changeset as of the time of this post ... Twitter user registration AND sign in works excellent! NOTE: Users must update their email right away with a valid email address. Facebook user registration AND sign in work excellent!

Posted by: tha_watcha - Sunday, 11 August 2013 08:19:19
[quote=Zero2Cool;60424]Using the latest changeset as of the time of this post ... Twitter user registration AND sign in works excellent! NOTE: Users must update their email right away with a valid email address. Facebook user registration AND sign in work excellent![/quote] You need to check the SSO System again. I hope it is now much clearer to login/register via Facebook/Twitter/Google. Also if you want to connect an existing forum account, you now simply login with the forum account an then connect the account. (In the current version of yaf a user needs to manually enter the twitter/facebook id in the user profile).

Posted by: Zero2Cool - Sunday, 11 August 2013 18:12:18
I just upgraded so I might be missing a few things, but the graphics are not displaying, nor is the option for Google at all. This isn't working at all and there's no error dialog informing me what is wrong either. I tried logging in via facebook and twitter it just refreshes my page. Same thing when I try to register with either of them. Google option isn't showing and thats probably because I dont have the app.config settings set. And also I noticed this in English.xml Neuen Benuzter erstellen

Posted by: johnk - Sunday, 11 August 2013 22:30:30
Another question: When user registers with FB, Twitter or Google - how does the system know which username, display name and password to set for that person? This would be helpful to know especially if they try to manually login (only with username and password) in the future. Tip: Jquery 1.10.2 has been released. And also thanks for adding Google plus SSO. This may be the only forum giving that option to users. :)

Posted by: johnk - Sunday, 11 August 2013 22:43:10
Few more suggestions In english.xml Line 2352 You have entered an illegal value as Facebook Profile URL. Could we replace the word "illegal" with either "invalid" or "incorrect"; since they are not doing anything illegal? :) Line 4909: User Email: {email} (Please dont change your email, or you are unable to login with facebook) Should that be login with Google? Similar change in line 4859 Line 4915: You have been successfully Registred on the {forumname} forum thru Google: This may also be helpful " You have successfully registered on the {forumname} forum using Google Login. " There was a typo in word "registered".

Posted by: Zero2Cool - Monday, 12 August 2013 01:44:56
How did you get the Google+ to work? I had the Facebook/Twitter working prior to the update, now neither of those work and I can't find the dev for creating a simple Google+ page to get the consumerkey information.

Posted by: johnk - Monday, 12 August 2013 01:58:00
[quote=Zero2Cool;60528]How did you get the Google+ to work? I had the Facebook/Twitter working prior to the update, now neither of those work and I can't find the dev for creating a simple Google+ page to get the consumerkey information.[/quote] I havent tried it yet. But I did request that feature few months back. The link below may be helpful: https://developers.google.com/+/

Posted by: Zero2Cool - Monday, 12 August 2013 02:23:52
[quote=johnk;60529][quote=Zero2Cool;60528]How did you get the Google+ to work? I had the Facebook/Twitter working prior to the update, now neither of those work and I can't find the dev for creating a simple Google+ page to get the consumerkey information.[/quote] I havent tried it yet. But I did request that feature few months back. The link below may be helpful: https://developers.google.com/+/[/quote] I seen that too, but didn't help much. Over stimulated with options and didn't have time to read through each one. I'll check into it thorouglhy later.

Posted by: tha_watcha - Monday, 12 August 2013 02:29:30
You Need to request an API Access Key herehttp://code.google.com/apis/ You also need to update the urlrewriter.config, that's why no login is working. I give you the full information when I'm back from work.

Posted by: Zero2Cool - Monday, 12 August 2013 02:31:02
[quote=tha_watcha;60532]You Need to request an API Access Key herehttp://code.google.com/apis/ You also need to update the urlrewriter.config, that's why no login is working. I give you the full information when I'm back from work.[/quote] I'll check the urlwriter.config from the source in the meantime. And I'm in the process of requesting that API key, but its saying my project ID is taken. Who the heck is gonna take my sites name? I think I have it and don't know it lol Edit, okay, from the source code I believe these two keys must be added to app.config [code=xml] [/code] Edit, okay got the url writer figured out. from this [code=xml][/code] to this [code=xml][/code] but now I have this error to disect :) Error: redirect_uri_mismatch The redirect URI in the request: http://packershome.com/forum/auth.aspx?auth=google did not match a registered redirect URI

Posted by: tha_watcha - Monday, 12 August 2013 04:07:04
You need to add this url http://packershome.com/forum/auth.aspx?auth=google as callback URL in the API settings on the google site.

Posted by: Zero2Cool - Monday, 12 August 2013 04:09:27
Kinda what I was thinking, but can't find out where to put that at. Under my API Access, I don't have a redirect url. Still looking The Twitter works, but the Facebook returned a 400 error. Didn't play with it much so don't have more info on that yet. Edit, I used Google+ API but I'm thinking there is probably some other service I was supposed to use. I can't find a redirect url at all.

Posted by: Zero2Cool - Monday, 12 August 2013 04:50:31
Error while trying to login or register the facebook user System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type YAF.Types.Objects.FacebookUser. End element 'hometown' from namespace '' expected. Found element 'id' from namespace ''. ---> System.Xml.XmlException: End element 'hometown' from namespace '' expected. Found element 'id' from namespace ''. at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3) at System.Xml.XmlExceptionHelper.ThrowEndElementExpected(XmlDictionaryReader reader, String localName, String ns) at System.Xml.XmlBaseReader.ReadEndElement() at System.Xml.XmlBaseReader.ReadElementContentAsString() at System.Runtime.Serialization.XmlReaderDelegator.ReadElementContentAsString() at ReadFacebookUserFromJson(XmlReaderDelegator , XmlObjectSerializerReadContextComplexJson , XmlDictionaryString , XmlDictionaryString[] ) at System.Runtime.Serialization.Json.JsonClassDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract) at System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) --- End of inner exception stack trace --- at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(Stream stream) at YAF.Utils.Extensions.JsonExtension.Deserialise[T](String json) at YAF.Core.Services.Auth.Facebook.GetFacebookUser(HttpRequest request, String access_token) at YAF.Core.Services.Auth.Facebook.LoginOrCreateUser(HttpRequest request, String parameters, String& message) at YAF.Auth.HandleFacebookReturn()

Posted by: tha_watcha - Monday, 12 August 2013 13:44:07
[quote]And also I noticed this in English.xml Neuen Benuzter erstellen[/quote] fixed [quote]Line 2352 You have entered an illegal value as Facebook Profile URL. Could we replace the word "illegal" with either "invalid" or "incorrect"; since they are not doing anything illegal?[/quote] Yes [quote]Line 4909: User Email: {email} (Please dont change your email, or you are unable to login with facebook) Should that be login with Google? Similar change in line 4859[/quote] No, it its the email template for facebook. [quote]Line 4915: You have been successfully Registred on the {forumname} forum thru Google: This may also be helpful " You have successfully registered on the {forumname} forum using Google Login. " There was a typo in word "registered".[/quote] also fixed

Posted by: tha_watcha - Monday, 12 August 2013 13:46:12
Error while trying to login or register the facebook user System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type YAF.Types.Objects.FacebookUser. End element 'hometown' from namespace '' expected. Found element 'id' from namespace ''. ---> System.Xml.XmlException: End element 'hometown' from namespace '' expected. Found element 'id' from namespace ''. at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3) at System.Xml.XmlExceptionHelper.ThrowEndElementExpected(XmlDictionaryReader reader, String localName, String ns) at System.Xml.XmlBaseReader.ReadEndElement() at System.Xml.XmlBaseReader.ReadElementContentAsString() at System.Runtime.Serialization.XmlReaderDelegator.ReadElementContentAsString() at ReadFacebookUserFromJson(XmlReaderDelegator , XmlObjectSerializerReadContextComplexJson , XmlDictionaryString , XmlDictionaryString[] ) at System.Runtime.Serialization.Json.JsonClassDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract) at System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) --- End of inner exception stack trace --- at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(Stream stream) at YAF.Utils.Extensions.JsonExtension.Deserialise[T](String json) at YAF.Core.Services.Auth.Facebook.GetFacebookUser(HttpRequest request, String access_token) at YAF.Core.Services.Auth.Facebook.LoginOrCreateUser(HttpRequest request, String parameters, String& message) at YAF.Auth.HandleFacebookReturn()

Posted by: tha_watcha - Monday, 12 August 2013 13:48:15
[quote=johnk;60518]Another question: When user registers with FB, Twitter or Google - how does the system know which username, display name and password to set for that person? This would be helpful to know especially if they try to manually login (only with username and password) in the future. Tip: Jquery 1.10.2 has been released. And also thanks for adding Google plus SSO. This may be the only forum giving that option to users. :)[/quote] They get an email with the username (the user name is the username from FB,Twitter or google) + password (is autom. generated) also the security question an answer.

Posted by: Zero2Cool - Monday, 12 August 2013 18:49:50
Error while trying to login or register the facebook user System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type YAF.Types.Objects.FacebookUser. End element 'hometown' from namespace '' expected. Found element 'id' from namespace ''. ---> System.Xml.XmlException: End element 'hometown' from namespace '' expected. Found element 'id' from namespace ''. at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3) at System.Xml.XmlExceptionHelper.ThrowEndElementExpected(XmlDictionaryReader reader, String localName, String ns) at System.Xml.XmlBaseReader.ReadEndElement() at System.Xml.XmlBaseReader.ReadElementContentAsString() at System.Runtime.Serialization.XmlReaderDelegator.ReadElementContentAsString() at ReadFacebookUserFromJson(XmlReaderDelegator , XmlObjectSerializerReadContextComplexJson , XmlDictionaryString , XmlDictionaryString[] ) at System.Runtime.Serialization.Json.JsonClassDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) at System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract) at System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) --- End of inner exception stack trace --- at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader) at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(Stream stream) at YAF.Utils.Extensions.JsonExtension.Deserialise[T](String json) at YAF.Core.Services.Auth.Facebook.GetFacebookUser(HttpRequest request, String access_token) at YAF.Core.Services.Auth.Facebook.LoginOrCreateUser(HttpRequest request, String parameters, String& message) at YAF.Auth.HandleFacebookReturn()

Posted by: tha_watcha - Tuesday, 13 August 2013 14:33:14
Sorry it can not work the hometown is a sub list. i disabled the hometown property it should work now.

Posted by: Zero2Cool - Tuesday, 13 August 2013 15:31:16
Sweet! All three work as expected now regarding registration. Connect to an Existing ForumId [b]Facebook [/b]- didn't actually log me in. I say it worked because my FB profile info was put into my forum profile. [b]Google [/b]link to Forum Id returned the error below so I think I have something wrong. But Google works to create new registeration. Error: invalid_request Invalid parameter value for redirect_uri: error is an OAuth 2 parameter, cannot be used in query: http://packershome.com/forum/auth.aspx?auth=google&error=access_denied [b]Twitter [/b]- works as expected

Posted by: tha_watcha - Thursday, 15 August 2013 14:10:37
[quote=Zero2Cool;60560][b]Google [/b]link to Forum Id returned the error below so I think I have something wrong. But Google works to create new registeration. Error: invalid_request Invalid parameter value for redirect_uri: error is an OAuth 2 parameter, cannot be used in query: http://packershome.com/forum/auth.aspx?auth=google&error=access_denied[/quote] I didn't get that error on your site. I was able to register and to login.

Posted by: Zero2Cool - Thursday, 15 August 2013 14:42:52
[quote=tha_watcha;60643][quote=Zero2Cool;60560][b]Google [/b]link to Forum Id returned the error below so I think I have something wrong. But Google works to create new registeration. Error: invalid_request Invalid parameter value for redirect_uri: error is an OAuth 2 parameter, cannot be used in query: http://packershome.com/forum/auth.aspx?auth=google&error=access_denied[/quote] I didn't get that error on your site. I was able to register and to login. [/quote] Registering for a NEW ForumId works with all three social mediums. Connecting to an existing ForumId with the social mediums is where the Google+ error comes up as well as the Facebook issue. Connecting to an existing ForumId with Twitter works fine. I deleted your ForumId newly created if you wanted to test it against the first account you made.

Posted by: tha_watcha - Saturday, 17 August 2013 13:36:38
[quote=Zero2Cool;60645][quote=tha_watcha;60643][quote=Zero2Cool;60560][b]Google [/b]link to Forum Id returned the error below so I think I have something wrong. But Google works to create new registeration. Error: invalid_request Invalid parameter value for redirect_uri: error is an OAuth 2 parameter, cannot be used in query: http://packershome.com/forum/auth.aspx?auth=google&error=access_denied[/quote] I didn't get that error on your site. I was able to register and to login. [/quote] Registering for a NEW ForumId works with all three social mediums. Connecting to an existing ForumId with the social mediums is where the Google+ error comes up as well as the Facebook issue. Connecting to an existing ForumId with Twitter works fine. I deleted your ForumId newly created if you wanted to test it against the first account you made.[/quote] You mean userid right ?! i updated the code on github. connecting to google and facebook should now work. To fix the error above with google you need to add the second url as redirect url in the google api console [b]Redirect URIs:[/b] http://packershome.com/forum/auth.aspx?auth=google&connectCurrent=true http://packershome.com/forum/auth.aspx?auth=google

Posted by: Zero2Cool - Saturday, 17 August 2013 17:12:35
[quote=tha_watcha;60685]You mean userid right ?! i updated the code on github. connecting to google and facebook should now work. To fix the error above with google you need to add the second url as redirect url in the google api console [b]Redirect URIs:[/b] http://packershome.com/forum/auth.aspx?auth=google&connectCurrent=true http://packershome.com/forum/auth.aspx?auth=google [/quote] Yes, UserId, but the YAF language calls it a Forum Id in spots so that's what I was referring to. Thanks for the redirect. I'll update that throw some feedback here.

Posted by: tha_watcha - Saturday, 17 August 2013 18:45:37
[quote=Zero2Cool;60690]Yes, UserId, but the YAF language calls it a Forum Id in spots so that's what I was referring to.[/quote] Really ? i can not find it in the language files. Do you know where you saw it? if yes it needs to be fixed.

Posted by: Zero2Cool - Sunday, 18 August 2013 00:48:30
[quote=tha_watcha;60693]Really ? i can not find it in the language files. Do you know where you saw it? if yes it needs to be fixed.[/quote] Apparently I'm a liar cuz now I can't find it. But I swear it said it somewhere because that's why I started referencing as to be on the same page and for clarity.

Posted by: johnk - Wednesday, 21 August 2013 05:00:49
Tha_watcha: Could you please update documentation on codeplex and on github on how to enable Google SSO? You could add a note that it is only for version 2.0 RC1 and above.

Posted by: tha_watcha - Saturday, 24 August 2013 15:56:38
[quote=johnk;60761]Tha_watcha: Could you please update documentation on codeplex and on github on how to enable Google SSO? You could add a note that it is only for version 2.0 RC1 and above.[/quote] Updated Wiki is online https://github.com/YAFNET/YAFNET/wiki/Google-Integration

Posted by: johnk - Saturday, 24 August 2013 21:31:29
Thanks tha_watcha. I noticed a typo in the sentence: [quote]The Client ID/secre needs to be entered in the app.config in your Forum[/quote] BTW, if the forum is inside a subfolder, what would the redirect URL look like? [code]http://yourdomain.com/yaf/auth.aspx?auth=google&connectCurrent=true[/code]

Posted by: johnk - Saturday, 24 August 2013 23:25:59
Another question on redirect link above: Is /yaf/ the subfolder where forum is located or is it based on urlrewriter rule? I have turned off urlrewriter. So would that redirect link still work?

Posted by: tha_watcha - Sunday, 25 August 2013 07:01:35
[quote=johnk;60816]Another question on redirect link above: Is /yaf/ the subfolder where forum is located or is it based on urlrewriter rule? I have turned off urlrewriter. So would that redirect link still work?[/quote] Yes the yaf in the url was the sub folder, i changed the text. And yes it also works without the urlrewriter