diff options
Diffstat (limited to 'src/main/webapp/lib/OpenIDConsumer/ClientScopeOpenIDSession.cfc')
-rwxr-xr-x | src/main/webapp/lib/OpenIDConsumer/ClientScopeOpenIDSession.cfc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/webapp/lib/OpenIDConsumer/ClientScopeOpenIDSession.cfc b/src/main/webapp/lib/OpenIDConsumer/ClientScopeOpenIDSession.cfc new file mode 100755 index 0000000..626e74e --- /dev/null +++ b/src/main/webapp/lib/OpenIDConsumer/ClientScopeOpenIDSession.cfc @@ -0,0 +1,22 @@ +<cfcomponent> + +<cffunction name="init"> + <cfreturn this/> +</cffunction> + +<cffunction name="exists"> + <cfreturn StructKeyExists(Client, "__OpenID")/> +</cffunction> + +<cffunction name="load"> + <cfset var json = createobject("component","json") /> + <cfreturn json.decode(Client.__OpenID)/> +</cffunction> + +<cffunction name="store"> + <cfargument name="data"/> + <cfset var json = createobject("component","json") /> + <cfset Client.__OpenID = json.encode(arguments.data)/> +</cffunction> + +</cfcomponent>
\ No newline at end of file |