Skip to content
Ingo edited this page Sep 10, 2016 · 7 revisions

To Enable Google Single Sign On Integration in YAF.NET (2.00 or higher is required)...

  • You need to Enable "Enable Single Sign On" in the Host Settings of your Forum.
  • And you need Google API Access for your website.

Register your Website on Googlecom

  1. Go to https://console.developers.google.com/projectselector/apis/credentials
  2. Next Click on "Create a project"
  3. Enter a Name to create and click on "create a project"
  4. In the next Screen "Credentials" select "OAuth client ID" from the "Create credentials" dropdown
  5. In the next Screen select "Web application" as "Application type"
  6. Next Under restrictions you need to enter the urls for "Authorized JavaScript origins" where you enter the domain for your forum and under Authorized redirect URIs enter...

http://yourdomain.com/forum/auth.aspx?auth=google

Replace "yourdomain.com" with your actual forum URL

  1. After your Application is created your Client ID/secret are created, which are needed for YAF.NET.
  2. The Client ID/secret needs to be entered in the app.config in your Forum

<add key="YAF.GoogleClientID" value="XXXX" />

<add key="YAF.GoogleClientSecret" value="XXXX" />

When Everything is setup correctly a "Login with Google" Button should occur on the login page.

Login for Users

  • Users are able to Register/Login with Google
  • Users can connect an existing Forum account with Google

Clone this wiki locally