use new API
This commit is contained in:
parent
07e0eef5bc
commit
d9cde1451a
@ -30,11 +30,11 @@ var OAuth2Strategy = require('passport-oauth2')
|
||||
*/
|
||||
function Strategy(options, verify) {
|
||||
options = options || {};
|
||||
options.authorizationURL = options.authorizationURL || 'https://icynet.eu/oauth2/authorize';
|
||||
options.tokenURL = options.tokenURL || 'https://icynet.eu/oauth2/token';
|
||||
options.authorizationURL = options.authorizationURL || 'https://secure.icynet.eu/oauth2/authorize';
|
||||
options.tokenURL = options.tokenURL || 'https://secure.icynet.eu/oauth2/token';
|
||||
options.scopeSeparator = options.scopeSeparator || ' ';
|
||||
|
||||
this._userProfileURL = options.userProfileURL || 'https://icynet.eu/oauth2/user';
|
||||
this._userProfileURL = options.userProfileURL || 'https://api.icynet.eu/api/user';
|
||||
|
||||
OAuth2Strategy.call(this, options, verify);
|
||||
this.name = 'icynet';
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "passport-icynet",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.3",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "passport-icynet",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.3",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"passport-oauth2": "^1.2.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "passport-icynet",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "Passport strategy for authentication with Icy Network (icynet.eu)",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
Loading…
Reference in New Issue
Block a user