Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

passport-sirena-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-sirena-oauth2 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "passport-sirena-oauth2",
"version": "1.0.0",
"version": "1.0.1",
"description": "Sirena (OAuth 2.0) authentication strategy for Passport",

@@ -5,0 +5,0 @@ "main": "./lib",

@@ -35,3 +35,5 @@ # passport-sirena-oauth2

callbackURL: 'https://www.appname.net/auth/sirena/callback'
userProfileURL: 'https://www.appname.net/oauth2/profile'
userProfileURL: 'https://www.appname.net/oauth2/profile',
scope: 'dashboardManagement' // Single scope
// scope: ['dashboardManagement', 'emailAccount'] // Multiple scopes
},

@@ -47,10 +49,10 @@ function(accessToken, refreshToken, profile, cb) {

- `authorizationURL` URL where the app needs to be authorized
- `clientID` your application's client id
- `clientSecret` your application's client secret
- `callbackURL` URL to which the Authorization Server will redirect the user after granting authorization
- `tokenURL` URL where the Authorization Server will return the tokens
- `userProfileURL` URL where the strategy can get the profile info
* `authorizationURL`: URL where the app needs to be authorized
* `clientID`: your application's client id
* `clientSecret`: your application's client secret
* `callbackURL`: URL to which the Authorization Server will redirect the user after granting authorization
* `tokenURL`: URL where the Authorization Server will return the tokens
* `userProfileURL`: URL where the strategy can get the profile info
* `scope`: When requesting access using OAuth 2.0, the scope of access is controlled by this parameter. For one scope, just pass a string. Multiple scopes can be specified as an array.
#### Authenticate Requests

@@ -57,0 +59,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc