deviantART oAuth strategy for Passport.
It currently passes back passport's universal
symbol has been deprecated in v0.0.4.
npm install passport-deviantart
Use the following example implementation to get started with deviantART's passport strategy library:
var passport = require'passport'deviantART = require'passport-deviantart'Strategypassportuse'deviantart'clientID: 'YOUR_APPLICATION_ID'clientSecret: 'YOUR_APPLICATION_SECRET'callbackURL: 'YOUR_CALLBACK_URL'UserfindOrCreatedoneerr user;;;
Two routes are required for the deviantART passport strategy
/** This first route redirects the user to the service provider.*/appget'/auth/provider/deviantart' passportauthenticate'deviantart';/*** This next route is used for the callback from the provider* If the authentication was a sucess then reditect the user* If it has failed bring them to the login page**/appget'/auth/provider/deviantart/callback'passportauthenticate'provider' successRedirect: '/'failureRedirect: '/login' ;
A simple example link to use this provider
Log In with deviantART!