· 6 years ago · Nov 28, 2018, 03:36 PM
1<!---
2This is the file that LinkedIn will call back to with the token. Make sure you update the path in the cfc to match your filename.
3--->
4<cfif structKeyExists(url, "oauth_token") and structKeyExists(url, "oauth_verifier")>
5 <cfif compareNoCase(session.linkedin.authTokenReq, url.oauth_token) eq 0>
6 <cfset session.linkedin.oauth_verifier = url.oauth_verifier />
7 <cfinvoke component="linkedIn" method="getAccessToken" authToken="#url.oauth_token#" authVerifier="#url.oauth_verifier#" returnvariable="s" />
8 LinkedIn Account verified. <a href="getProfile.cfm">Click here to get your profile</a>
9 <cfdump var="#s#">
10 <cfdump var="#session#">
11 <cfelse>
12 Invalid token received.
13 </cfif>
14<cfelse>
15 This page cannot be invoked directly.
16</cfif>