Skip to content

jatinkatyal13/passport-nonce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passport-nonce

Install

$ npm install passport-nonce

Usage

Configure Strategy

passport.use(new NonceStrategy({
  clientHeaderName: 'x-client-name',
  nonceHeaderName: 'x-nonce',
  tokenHeaderName: 'x-token',
  clientSecrets: {
    'client1': 'averysecretsharedsecret',
    'client2': 'averysecretsharedsecret'
  }
}))

Authenticate Requests

app.get('/judge',
  passport.authenticate('nonce'));

About

Passport strategy for nonce based authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published