Closed SteveMcArthur closed 9 years ago
Hardcoded configs now removed. Plugin now checks that all strategies are configured with clientID and clientSecret. If not, the strategy is removed and a warning is issued. If no strategies are configured then warning issued that no strategies are configured and no pages will be protected by authentication.
By default the plugin is hardcoded configured with the strategies for facebook and twitter, BUT without the clientID or clientSecret (sensible). This means that if these values are not supplied by the application via a plugin configuration in the docpad.coffee file, the whole application will fall over with: "TypeError: OAuth2Strategy requires a clientID option".