YAFLogo

MilitanteDoPT
5 years ago
Hello, good evening, I'm developing my project and now I'm thinking about implementing a single sign-on in it. Is there a native way of doing that in YAF? If not, is there anything I should know before adding that to my site and its forum?
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Yes of course you can do that, it depends if you already have an existing database with a user base or if you start from scratch.

Did you see the sample application with yaf, that you find under downloads?
MilitanteDoPT
5 years ago
I already have an existing database with a user base. I've downloaded the sample application, but I have not found details about how would I integrate the forum to my site. Would I just insert into both my user table and YAF's user table? Are there any specific cookies (Or similar) I should take into account when developing this integration?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Originally Posted by: MilitanteDoPT 

I already have an existing database with a user base. I've downloaded the sample application, but I have not found details about how would I integrate the forum to my site. Would I just insert into both my user table and YAF's user table? Are there any specific cookies (Or similar) I should take into account when developing this integration?



In that case it depends what system you are using as user base and login system. YAF uses the standard ASP.NET Membership. If you use same then it would be simple to import the users in to YAF.

Otherwise you would need to import them manually. For example during login check if the user exist in yaf. (if yes - log them in to the forum, if not -then create the user and log them in).

MilitanteDoPT
5 years ago
Thank you very much for replying to my question! I've done what you said me and it worked the way I expected.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button