passport-sirena-oauth2
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8787
72