diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-06-01 20:10:36 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-06-01 20:10:36 -0500 |
commit | 951330c9f83c8c8ee98f65fdccb5797e2e59d1f3 (patch) | |
tree | fc7b196ca0d91c1c71dcd945aa9667c7af0134fa /includes/HybridAuth/resources | |
parent | e58a3b8b3702b22c903b02a9b4fa1020d6797459 (diff) | |
download | pathery-951330c9f83c8c8ee98f65fdccb5797e2e59d1f3.tar.xz |
A partial commit of the auth stuff, in case my upcoming changes break anything
Diffstat (limited to 'includes/HybridAuth/resources')
-rw-r--r-- | includes/HybridAuth/resources/config.php.tpl | 72 | ||||
-rw-r--r-- | includes/HybridAuth/resources/index.html | 10 | ||||
-rw-r--r-- | includes/HybridAuth/resources/openid_policy.html | 10 | ||||
-rw-r--r-- | includes/HybridAuth/resources/openid_realm.html | 13 | ||||
-rw-r--r-- | includes/HybridAuth/resources/openid_xrds.xml | 12 |
5 files changed, 117 insertions, 0 deletions
diff --git a/includes/HybridAuth/resources/config.php.tpl b/includes/HybridAuth/resources/config.php.tpl new file mode 100644 index 0000000..a718c1f --- /dev/null +++ b/includes/HybridAuth/resources/config.php.tpl @@ -0,0 +1,72 @@ +<?php +/*! +* HybridAuth +* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth +* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html +*/ + +// ---------------------------------------------------------------------------------------- +// HybridAuth Config file: http://hybridauth.sourceforge.net/userguide/Configuration.html +// ---------------------------------------------------------------------------------------- + +return + array( + "base_url" => "#GLOBAL_HYBRID_AUTH_URL_BASE#", + + "providers" => array ( + // openid providers + "OpenID" => array ( + "enabled" => #OPENID_ADAPTER_STATUS# + ), + + "AOL" => array ( + "enabled" => #AOL_ADAPTER_STATUS# + ), + + "Yahoo" => array ( + "enabled" => #YAHOO_ADAPTER_STATUS#, + "keys" => array ( "id" => "#YAHOO_APPLICATION_APP_ID#", "secret" => "#YAHOO_APPLICATION_SECRET#" ) + ), + + "Google" => array ( + "enabled" => #GOOGLE_ADAPTER_STATUS#, + "keys" => array ( "id" => "#GOOGLE_APPLICATION_APP_ID#", "secret" => "#GOOGLE_APPLICATION_SECRET#" ) + ), + + "Facebook" => array ( + "enabled" => #FACEBOOK_ADAPTER_STATUS#, + "keys" => array ( "id" => "#FACEBOOK_APPLICATION_APP_ID#", "secret" => "#FACEBOOK_APPLICATION_SECRET#" ) + ), + + "Twitter" => array ( + "enabled" => #TWITTER_ADAPTER_STATUS#, + "keys" => array ( "key" => "#TWITTER_APPLICATION_KEY#", "secret" => "#TWITTER_APPLICATION_SECRET#" ) + ), + + // windows live + "Live" => array ( + "enabled" => #LIVE_ADAPTER_STATUS#, + "keys" => array ( "id" => "#LIVE_APPLICATION_APP_ID#", "secret" => "#LIVE_APPLICATION_SECRET#" ) + ), + + "MySpace" => array ( + "enabled" => #MYSPACE_ADAPTER_STATUS#, + "keys" => array ( "key" => "#MYSPACE_APPLICATION_KEY#", "secret" => "#MYSPACE_APPLICATION_SECRET#" ) + ), + + "LinkedIn" => array ( + "enabled" => #LINKEDIN_ADAPTER_STATUS#, + "keys" => array ( "key" => "#LINKEDIN_APPLICATION_KEY#", "secret" => "#LINKEDIN_APPLICATION_SECRET#" ) + ), + + "Foursquare" => array ( + "enabled" => #FOURSQUARE_ADAPTER_STATUS#, + "keys" => array ( "id" => "#FOURSQUARE_APPLICATION_APP_ID#", "secret" => "#FOURSQUARE_APPLICATION_SECRET#" ) + ), + ), + + // if you want to enable logging, set 'debug_mode' to true then provide a writable file by the web server on "debug_file" + "debug_mode" => false, + + "debug_file" => "" + ); diff --git a/includes/HybridAuth/resources/index.html b/includes/HybridAuth/resources/index.html new file mode 100644 index 0000000..c942a79 --- /dev/null +++ b/includes/HybridAuth/resources/index.html @@ -0,0 +1,10 @@ +<html> +<head> + <title>403 Forbidden</title> +</head> +<body> + +<p>Directory access is forbidden.</p> + +</body> +</html>
\ No newline at end of file diff --git a/includes/HybridAuth/resources/openid_policy.html b/includes/HybridAuth/resources/openid_policy.html new file mode 100644 index 0000000..01462da --- /dev/null +++ b/includes/HybridAuth/resources/openid_policy.html @@ -0,0 +1,10 @@ +<html> + <head> + <title>OpenID Policy</title> + </head> + <body> + <!-- + Set here your OpenID Policy, + --> + </body> +</html>
\ No newline at end of file diff --git a/includes/HybridAuth/resources/openid_realm.html b/includes/HybridAuth/resources/openid_realm.html new file mode 100644 index 0000000..78b1b1d --- /dev/null +++ b/includes/HybridAuth/resources/openid_realm.html @@ -0,0 +1,13 @@ +<html> + <head> + <title>HybridAuth Endpoint</title> + <meta name="robots" content="NOINDEX, NOFOLLOW"> + <meta http-equiv="X-XRDS-Location" content="{X_XRDS_LOCATION}" /> + </head> + <body> + <h3 style="margin-bottom: 2px;">HybridAuth</h3> + Open Source Social Sign On PHP Library. + <br /> + <a href="http://hybridauth.sourceforge.net/" style="color:green;text-decoration:none;">hybridauth.sourceforge.net/</a> + </body> +</html> diff --git a/includes/HybridAuth/resources/openid_xrds.xml b/includes/HybridAuth/resources/openid_xrds.xml new file mode 100644 index 0000000..ab94e5c --- /dev/null +++ b/includes/HybridAuth/resources/openid_xrds.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xrds:XRDS + xmlns:xrds="xri://$xrds" + xmlns:openid="http://openid.net/xmlns/1.0" + xmlns="xri://$xrd*($v*2.0)"> + <XRD> + <Service priority="1"> + <Type>http://specs.openid.net/auth/2.0/return_to</Type> + <URI>{RETURN_TO_URL}</URI> + </Service> + </XRD> +</xrds:XRDS>
\ No newline at end of file |