Examples for Oauth2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
oauth2
LICENSE
README.md
application.cfc
box.json
index.cfm
refresh.cfm
revoke.cfm

README.md

Oauth2

A CFC for Oauth2.

Getting Started

Nice starter documentation: http://www.progratory.com/index.cfm/2014/10/31/Getting-started-with-oauth2-for-Google

Basics

To get started, fill in your own client_id, client_secret and scope. These are found in the Google developer console. Make the changes in application.cfc.

	<cfset application.oauth2 = new oauth2.oauth2(
		client_id 		=   'YOUR %Client ID%',
		client_secret 	= 	'YOUR %Client secret%',
		redirect_uri	=	'http://localhost/GoogleCal/oauth2/index.cfm',
		scope           =   'https://www.googleapis.com/auth/calendar',
		state			=	'',
		access_type		=	'offline', <!--- Use offline for refresh tokens --->
		approval_prompt	=	'force'
	) />

Contributors:

Author: William Eatman @billeatman

Based on Oauth2 work done by Matt Gifford @coldfumonkeh http://googleanalytics.riaforge.org/