Skip to content

Commit 20655fa

Browse files
committed
Added README.md
1 parent 900ac55 commit 20655fa

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Google OAuth User Directory Plugin
2+
3+
## Overview
4+
5+
Google UD provides federated logins for FarCry publishing platform using [OAuth 2.0 for Google accounts](https://developers.google.com/accounts/docs/OAuth2Login)
6+
7+
## Installation
8+
9+
### Part 1: Google Configuration
10+
11+
Create a Google Account and login to the [Google API Console](https://code.google.com/apis/console/).
12+
13+
Create a new project
14+
15+
![Create Project](docs/api_createproject.png)
16+
17+
In API Access, create a client ID
18+
19+
![Create Client ID](docs/api_createclientidlink.png)
20+
21+
You will need to add the links FarCry will be using to this config:
22+
23+
- redirect uri: `http://[your domain here]/index.cfm?type=gudLogin&view=displayLogin`
24+
- javascript origin: `http://[your domain here]`
25+
26+
You will need the Client ID and Client Secret - either copy them, or keep the window open
27+
28+
![Copy Authentication Details](docs/api_copydetails.png)
29+
30+
31+
### Part 2: FarCry Configuration
32+
33+
Download and add the googleud plugin to your project:
34+
35+
<https://github.com/farcrycore/plugin-googleud>
36+
37+
Your plugin will typically be stored in `./farcry/plugins/googleud` and you can register it within your project by adding it to the `./www/farcryconstructor.cfm`. For example:
38+
39+
```
40+
<cfset THIS.plugins = "googleud,googleanalytics" />
41+
```
42+
43+
Update the application (ie restart the application) to register the newly added plugin.
44+
45+
Configure the plugin:
46+
47+
- Add the **Google Client ID** and **Client Secret** into the Google User Directory configuration under `ADMIN > Configuration`.
48+
- Deploy the new content types - **gudUser** and **gudGroup** through the webtop `ADMIN > Developer Tools > COAPI`.
49+
- Create a Google user group (Admin -> General Admin -> User Directory -> Group Groups) for your specific email domain (anyone logging in with an email within this domain will be automatically assigned to this group)
50+
- Add your Group to the appropriate FarCry roles (Admin -> General Admin -> Roles & Permissions -> Roles)
51+
52+
## But wait, there's more!
53+
54+
Often you will have an existing account in the application you have added GoogleUD to.
55+
56+
This can lead to issues with:
57+
- history tracking
58+
- content ownership
59+
- the old account won't be disabled if the Google account is
60+
61+
In the Webtop there is a utility for merging an existing account into your Google login account.
62+
63+
![FarCry Merge Profile](docs/farcry_merge.png)

docs/api_copydetails.png

16.7 KB
Loading

docs/api_createclientidlink.png

30.7 KB
Loading

docs/api_createproject.png

31.3 KB
Loading

docs/farcry_merge.png

21.9 KB
Loading

0 commit comments

Comments
 (0)