Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Skyrock.com provider

  • Loading branch information...
commit d6f31534459354bbb1a0fbb47581913953eb5c3b 1 parent f9d9a90
niQo authored
View
1  examples/app.js
@@ -85,6 +85,7 @@ app.use(connect.static(__dirname + '/public'))
, auth.Http({validatePassword: validatePasswordFunction, getSharedSecretForUser: getSharedSecretForUserFunction})
, auth.Never()
, auth.Twitter({consumerKey: twitterConsumerKey, consumerSecret: twitterConsumerSecret})
+ , auth.Skyrock({consumerKey: skyrockConsumerKey, consumerSecret: skyrockConsumerSecret, callback: skyrockCallbackAddress})
, auth.Facebook({appId : fbId, appSecret: fbSecret, scope: "email", callback: fbCallbackAddress})
, auth.Github({appId : ghId, appSecret: ghSecret, callback: ghCallbackAddress})
, auth.Yahoo({consumerKey: yahooConsumerKey, consumerSecret: yahooConsumerSecret, callback: yahooCallbackAddress})
View
5 examples/example_keys_file.js
@@ -33,4 +33,7 @@ exports.linkedinConsumerSecret= "";
exports.linkedinCallback= "http://localhost/auth/linkedin_callback";
exports.yammerConsumerKey= "";
exports.yammerConsumerSecret= "";
-exports.yammerCallback= "http://localhost/auth/yammer_callback";
+exports.yammerCallback= "http://localhost/auth/yammer_callback";
+exports.skyrockConsumerKey= "";
+exports.skyrockConsumerSecret= "";
+exports.skyrockCallbackAddress= "http://local.host/auth/skyrock_callback";
View
10 examples/public/unauthenticated.html
@@ -109,6 +109,14 @@ <h2 id="slogan"></h2>
<td><a href="?login_with=linkedin"><img src="https://developer.linkedin.com/sites/default/files/js-signin.png"/></a></td>
</tr>
<tr class="row-a">
+ <td class="first">Skyrock</td>
+ <td><div style="float:left;margin-left:5px">
+ <a href="?login_with=skyrock" style="border:0px">
+ <img style="border:0px" src="/skyrock-connect-black.png"/>
+ </a>
+ </div></td>
+ </tr>
+ <tr class="row-a">
<td class="first">Twitter</td>
<td><div style="float:left;margin-left:5px">
<a href="?login_with=twitter" style="border:0px">
@@ -191,4 +199,4 @@ <h2 id="slogan"></h2>
<!-- footer ends-->
</div>
</body>
- </html>
+ </html>
View
2  lib/auth.strategies/skyrock.js
@@ -1,4 +1,6 @@
/*!
+* Skyrock.com auth strategie
+* see http://www.skyrock.com/developer/
* MIT Licensed
*/
var OAuth= require("oauth").OAuth,
Please sign in to comment.
Something went wrong with that request. Please try again.