YAFLogo

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago
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!

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

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!

Originally Posted by: Zero2Cool 

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).

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago
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

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time
10 years ago
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. 🙂

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time
10 years ago
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".

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago
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.
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time
10 years ago

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.

Originally Posted by: Zero2Cool 

I havent tried it yet. But I did request that feature few months back. The link below may be helpful:

https://developers.google.com/+/ 

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago

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.

Originally Posted by: johnk 

I havent tried it yet. But I did request that feature few months back. The link below may be helpful:

https://developers.google.com/+/ 

Originally Posted by: Zero2Cool 

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.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago
ehttp://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.

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago
ehttp://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.

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

 <!-- Google+ -->
  <add key="YAF.GoogleClientID" value="put your own id here" />
  <add key="YAF.GoogleClientSecret" value="its a big secret" />

Edit, okay got the url writer figured out.

from this

<rewrite url="^~/(.+?)?yaf_login?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=login&amp;$5" processing="stop" />

to this

<rewrite url="^~/(.+?)?yaf_login?\.aspx\?(.+)?$" to="~/$1Default.aspx?g=login&amp;$2" processing="stop" />

but now I have this error to disect :)

Error: redirect_uri_mismatch

http://packershome.com/forum/auth.aspx?auth=google  did not match a registered redirect URI

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago
http://packershome.com/forum/auth.aspx?auth=google  as callback URL in the API settings on the google site.
Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago
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.

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
10 years ago
Twitter - got it working

Google+ - got it working

Facebook - ... the eventlog entry below is what I get when attempting to register with Facebook account.

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()
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

And also I noticed this in English.xml

Neuen Benuzter erstellen

fixed

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?

Yes

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

No, it its the email template for facebook.

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".

also fixed

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

Facebook - ... the eventlog entry below is what I get when attempting to register with Facebook account.

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()

Originally Posted by: Zero2Cool 

Please try the updated code.

Users browsing this topic