forked from YAFNET/YAFNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Google Integration
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.
- Go to https://console.developers.google.com/projectselector/apis/credentials
- Next Click on "Create a project"
- Enter a Name to create and click on "create a project"
- In the next Screen "Credentials" select "OAuth client ID" from the "Create credentials" dropdown
- In the next Screen select "Web application" as "Application type"
- 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
- After your Application is created your Client ID/secret are created, which are needed for YAF.NET.
- 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.
- Users are able to Register/Login with Google
- Users can connect an existing Forum account with Google
YetAnotherForum.NET (YAF) the Open Source Discussion Forum for ASP.NET - http://YetAnotherForum.NET
Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved