Comparing version 4.6.3 to 4.6.4
@@ -155,4 +155,4 @@ { | ||
"clio": { | ||
"authorize_url": "https://app.goclio.com/oauth/authorize", | ||
"access_url": "https://app.goclio.com/oauth/token", | ||
"authorize_url": "https://app.clio.com/oauth/authorize", | ||
"access_url": "https://app.clio.com/oauth/token", | ||
"oauth": 2 | ||
@@ -168,5 +168,6 @@ }, | ||
"concur": { | ||
"authorize_url": "https://www.concursolutions.com/net2/oauth2/Login.aspx", | ||
"access_url": "https://www.concursolutions.com/net2/oauth2/GetAccessToken.ashx", | ||
"oauth": 2 | ||
"authorize_url": "https://[subdomain].api.concursolutions.com/oauth2/v0/authorize", | ||
"access_url": "https://[subdomain].api.concursolutions.com/oauth2/v0/token", | ||
"oauth": 2, | ||
"subdomain": true | ||
}, | ||
@@ -318,3 +319,4 @@ "constantcontact": { | ||
"access_url": "https://ident.familysearch.org/cis-web/oauth2/v3/token", | ||
"oauth": 2 | ||
"oauth": 2, | ||
"scope_delimiter": " " | ||
}, | ||
@@ -327,8 +329,2 @@ "feedly": { | ||
"fitbit": { | ||
"request_url": "https://api.fitbit.com/oauth/request_token", | ||
"authorize_url": "https://www.fitbit.com/oauth/authorize", | ||
"access_url": "https://api.fitbit.com/oauth/access_token", | ||
"oauth": 1 | ||
}, | ||
"fitbit2": { | ||
"authorize_url": "https://www.fitbit.com/oauth2/authorize", | ||
@@ -542,2 +538,8 @@ "access_url": "https://api.fitbit.com/oauth2/token", | ||
}, | ||
"line": { | ||
"authorize_url": "https://access.line.me/oauth2/v2.1/authorize", | ||
"access_url": "https://api.line.me/oauth2/v2.1/token", | ||
"oauth": 2, | ||
"scope_delimiter": " " | ||
}, | ||
"linkedin": { | ||
@@ -638,2 +640,7 @@ "request_url": "https://api.linkedin.com/uas/oauth/requestToken", | ||
}, | ||
"naver": { | ||
"authorize_url": "https://nid.naver.com/oauth2.0/authorize", | ||
"access_url": "https://nid.naver.com/oauth2.0/token", | ||
"oauth": 2 | ||
}, | ||
"nest": { | ||
@@ -640,0 +647,0 @@ "authorize_url": "https://home.nest.com/login/oauth2", |
@@ -185,2 +185,6 @@ 'use strict'; | ||
var compat = function compat(config) { | ||
return config.fitbit2 ? Object.assign({}, config, { fitbit2: Object.assign({}, oauth.fitbit, config.fitbit2) }) : config; | ||
}; | ||
// init all configured providers | ||
@@ -190,3 +194,3 @@ var ctor = function ctor() { | ||
var defaults = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : config.defaults || config.server; | ||
return Object.keys(config).filter(function (name) { | ||
return Object.keys(compat(config)).filter(function (name) { | ||
return !/defaults|server/.test(name); | ||
@@ -239,3 +243,3 @@ }).reduce(function (all, name) { | ||
module.exports = Object.assign(ctor, { | ||
compose, dcopy, merge, filter, format, state, transform, init, provider | ||
compose, dcopy, merge, filter, format, state, transform, init, compat, provider | ||
}); |
@@ -86,3 +86,3 @@ 'use strict'; | ||
} | ||
if (/ebay|fitbit2|homeaway|hootsuite|reddit/.test(provider.name) || provider.token_endpoint_auth_method === 'client_secret_basic') { | ||
if (/ebay|fitbit|homeaway|hootsuite|reddit/.test(provider.name) || provider.token_endpoint_auth_method === 'client_secret_basic') { | ||
delete options.form.client_id; | ||
@@ -89,0 +89,0 @@ delete options.form.client_secret; |
{ | ||
"name": "grant", | ||
"version": "4.6.3", | ||
"version": "4.6.4", | ||
"description": "OAuth Middleware for Express, Koa and Hapi", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Change Log | ||
## v4.6.4 (2019/10/27) | ||
- **New:** Official support for 2 new providers: `line` and `naver` | ||
- **Fix:** Updated 4 providers: `clio`, `concur`, `familysearch` and `fitbit` | ||
## v4.6.3 (2019/09/07) | ||
@@ -5,0 +9,0 @@ - **New:** Official support for 3 new providers: `atlassian`, `aweber`, `phantauth` |
@@ -155,4 +155,4 @@ { | ||
"clio": { | ||
"authorize_url": "https://app.goclio.com/oauth/authorize", | ||
"access_url": "https://app.goclio.com/oauth/token", | ||
"authorize_url": "https://app.clio.com/oauth/authorize", | ||
"access_url": "https://app.clio.com/oauth/token", | ||
"oauth": 2 | ||
@@ -168,5 +168,6 @@ }, | ||
"concur": { | ||
"authorize_url": "https://www.concursolutions.com/net2/oauth2/Login.aspx", | ||
"access_url": "https://www.concursolutions.com/net2/oauth2/GetAccessToken.ashx", | ||
"oauth": 2 | ||
"authorize_url": "https://[subdomain].api.concursolutions.com/oauth2/v0/authorize", | ||
"access_url": "https://[subdomain].api.concursolutions.com/oauth2/v0/token", | ||
"oauth": 2, | ||
"subdomain": true | ||
}, | ||
@@ -318,3 +319,4 @@ "constantcontact": { | ||
"access_url": "https://ident.familysearch.org/cis-web/oauth2/v3/token", | ||
"oauth": 2 | ||
"oauth": 2, | ||
"scope_delimiter": " " | ||
}, | ||
@@ -327,8 +329,2 @@ "feedly": { | ||
"fitbit": { | ||
"request_url": "https://api.fitbit.com/oauth/request_token", | ||
"authorize_url": "https://www.fitbit.com/oauth/authorize", | ||
"access_url": "https://api.fitbit.com/oauth/access_token", | ||
"oauth": 1 | ||
}, | ||
"fitbit2": { | ||
"authorize_url": "https://www.fitbit.com/oauth2/authorize", | ||
@@ -542,2 +538,8 @@ "access_url": "https://api.fitbit.com/oauth2/token", | ||
}, | ||
"line": { | ||
"authorize_url": "https://access.line.me/oauth2/v2.1/authorize", | ||
"access_url": "https://api.line.me/oauth2/v2.1/token", | ||
"oauth": 2, | ||
"scope_delimiter": " " | ||
}, | ||
"linkedin": { | ||
@@ -638,2 +640,7 @@ "request_url": "https://api.linkedin.com/uas/oauth/requestToken", | ||
}, | ||
"naver": { | ||
"authorize_url": "https://nid.naver.com/oauth2.0/authorize", | ||
"access_url": "https://nid.naver.com/oauth2.0/token", | ||
"oauth": 2 | ||
}, | ||
"nest": { | ||
@@ -640,0 +647,0 @@ "authorize_url": "https://home.nest.com/login/oauth2", |
@@ -162,5 +162,10 @@ | ||
var compat = (config) => | ||
config.fitbit2 ? ( | ||
Object.assign({}, config, {fitbit2: Object.assign({}, oauth.fitbit, config.fitbit2)}) | ||
) : config | ||
// init all configured providers | ||
var ctor = (config = {}, defaults = config.defaults || config.server) => | ||
Object.keys(config) | ||
Object.keys(compat(config)) | ||
.filter((name) => !/defaults|server/.test(name)) | ||
@@ -212,3 +217,3 @@ .reduce((all, name) => ( | ||
module.exports = Object.assign(ctor, { | ||
compose, dcopy, merge, filter, format, state, transform, init, provider | ||
compose, dcopy, merge, filter, format, state, transform, init, compat, provider | ||
}) |
@@ -85,3 +85,3 @@ | ||
} | ||
if (/ebay|fitbit2|homeaway|hootsuite|reddit/.test(provider.name) | ||
if (/ebay|fitbit|homeaway|hootsuite|reddit/.test(provider.name) | ||
|| provider.token_endpoint_auth_method === 'client_secret_basic' | ||
@@ -88,0 +88,0 @@ ) { |
{ | ||
"name": "grant", | ||
"version": "4.6.3", | ||
"version": "4.6.4", | ||
"description": "OAuth Middleware for Express, Koa and Hapi", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,3 +9,3 @@ | ||
[`23andme`](https://api.23andme.com) | [`500px`](https://github.com/500px/api-documentation) | [`acton`](https://developer.act-on.com) | [`acuityscheduling`](https://developers.acuityscheduling.com) | [`aha`](https://www.aha.io/api) | [`amazon`](https://login.amazon.com/documentation) | [`angellist`](https://angel.co/api) | [`arcgis`](https://developers.arcgis.com) | [`asana`](https://asana.com/developers) | [`assembla`](https://api-docs.assembla.cc) | [`atlassian`](https://developer.atlassian.com) | [`auth0`](https://auth0.com/docs) | [`authentiq`](https://www.authentiq.com/developers) | [`aweber`](https://api.aweber.com) | [`axosoft`](https://developer.axosoft.com) | [`baidu`](https://developer.baidu.com) | [`basecamp`](https://github.com/basecamp/bc3-api) | [`battlenet`](https://develop.battle.net) | [`beatport`](https://oauth-api.beatport.com) | [`bitbucket`](https://developer.atlassian.com/bitbucket/api/2/reference/) | [`bitly`](https://dev.bitly.com) | [`box`](https://developer.box.com) | [`buffer`](https://buffer.com/developers) | [`campaignmonitor`](https://www.campaignmonitor.com/api) | [`cheddar`](https://cheddarapp.com/developer) | [`clio`](https://app.clio.com/api/v4/documentation) | [`coinbase`](https://developers.coinbase.com) | [`concur`](https://developer.concur.com) | [`constantcontact`](https://developer.constantcontact.com) | [`coursera`](https://building.coursera.org) | [`dailymotion`](https://developer.dailymotion.com) | [`deezer`](https://developers.deezer.com) | [`delivery`](https://developers.delivery.com) | [`deputy`](https://www.deputy.com/api-doc/) | [`deviantart`](https://www.deviantart.com/developers/) | [`digitalocean`](https://developers.digitalocean.com) | [`discogs`](https://www.discogs.com/developers/) | [`discord`](https://discordapp.com/developers/docs/intro) | [`disqus`](https://disqus.com/api/docs) | [`docusign`](https://developers.docusign.com) | [`dribbble`](https://developer.dribbble.com) | [`dropbox`](https://www.dropbox.com/developers) | [`ebay`](https://developer.ebay.com) | [`echosign`](https://secure.echosign.com/public/docs/restapi/v3) | [`ecwid`](https://developers.ecwid.com) | [`edmodo`](https://partnerships.edmodo.com) | [`egnyte`](https://developers.egnyte.com) | [`etsy`](https://www.etsy.com/developers) | [`eventbrite`](https://www.eventbrite.com/platform) | [`evernote`](https://dev.evernote.com) | [`eyeem`](https://github.com/eyeem/Public-API) | [`facebook`](https://developers.facebook.com) | [`familysearch`](https://www.familysearch.org/developers/) | [`feedly`](https://developer.feedly.com) | [`fitbit`](https://dev.fitbit.com) | [`flattr`](http://developers.flattr.net) | [`flickr`](https://www.flickr.com/services) | [`flowdock`](https://www.flowdock.com/api) | [`formstack`](https://developers.formstack.com) | [`foursquare`](https://developer.foursquare.com) | [`freeagent`](https://dev.freeagent.com) | [`freelancer`](https://developers.freelancer.com) | [`freshbooks`](https://www.freshbooks.com/developers) | [`geeklist`](http://hackers.geekli.st) | [`genius`](https://docs.genius.com) | [`getbase`](https://developers.getbase.com) | [`getpocket`](https://getpocket.com/developer) | [`gitbook`](https://developer.gitbook.com) | [`github`](https://developer.github.com) | [`gitlab`](https://docs.gitlab.com/ce/api/) | [`gitter`](https://developer.gitter.im) | [`goodreads`](https://www.goodreads.com/api) | [`google`](https://developers.google.com) | [`groove`](https://www.groovehq.com/docs) | [`gumroad`](https://gumroad.com/api) | [`harvest`](https://help.getharvest.com/api-v2/) | [`hellosign`](https://www.hellosign.com/api) | [`heroku`](https://devcenter.heroku.com/categories/platform-api) | [`homeaway`](https://www.homeaway.com/platform) | [`hootsuite`](https://developer.hootsuite.com) | [`ibm`](https://www.ibm.com/support/knowledgecenter/SSAT72/com.ibm.help.ssm_adminguide.doc/t_RegisteringforblueID.html) | [`iconfinder`](https://developer.iconfinder.com) | [`idme`](https://developer.id.me) | [`idonethis`](https://i-done-this.readme.io/docs) | [`imgur`](https://apidocs.imgur.com) | [`infusionsoft`](https://developer.infusionsoft.com) | [`instagram`](https://instagram.com/developer) | [`intuit`](https://developer.intuit.com) | [`jamendo`](https://devportal.jamendo.com/) | [`jumplead`](https://developer.jumplead.com) | [`kakao`](https://developers.kakao.com) | [`linkedin`](https://www.linkedin.com/developers) | [`live`](https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth?view=odsp-graph-online) | [`lyft`](https://developer.lyft.com) | [`mailchimp`](https://developer.mailchimp.com) | [`mailup`](http://help.mailup.com/display/mailupapi/REST+API) | [`mailxpert`](https://dev.mailxpert.ch) | [`mapmyfitness`](https://developer.underarmour.com) | [`mastodon`](https://docs.joinmastodon.org/) | [`medium`](https://developers.medium.com) | [`meetup`](https://www.meetup.com/meetup_api/) | [`mention`](https://dev.mention.com) | [`microsoft`](https://developer.microsoft.com/en-us/graph) | [`mixcloud`](https://www.mixcloud.com/developers) | [`mixer`](https://dev.mixer.com) | [`moxtra`](https://developer.moxtra.com) | [`myob`](https://developer.myob.com) | [`nest`](https://developers.nest.com) | [`nokotime`](https://developer.nokotime.com) | [`nylas`](https://docs.nylas.com) | [`okta`](https://developer.okta.com/) | [`onelogin`](https://developers.onelogin.com) | [`openstreetmap`](https://wiki.openstreetmap.org/wiki/API_v0.6) | [`optimizely`](https://developers.optimizely.com) | [`patreon`](https://docs.patreon.com) | [`paypal`](https://developer.paypal.com) | [`phantauth`](https://www.phantauth.net) | [`pinterest`](https://developers.pinterest.com) | [`plurk`](https://www.plurk.com/API) | [`podio`](https://developers.podio.com) | [`producthunt`](https://api.producthunt.com/v2/docs) | [`projectplace`](https://service.projectplace.com/apidocs) | [`pushbullet`](https://docs.pushbullet.com) | [`qq`](https://wiki.connect.qq.com/%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C_oauth2-0) | [`ravelry`](https://www.ravelry.com/api) | [`redbooth`](https://redbooth.com/api) | [`reddit`](https://www.reddit.com/dev/api) | [`runkeeper`](https://runkeeper.com/developer/healthgraph/) | [`salesforce`](https://developer.salesforce.com) | [`shoeboxed`](https://github.com/Shoeboxed/api) | [`shopify`](https://developers.shopify.com) | [`skyrock`](https://www.skyrock.com/developer) | [`slack`](https://api.slack.com) | [`slice`](https://developer.slice.com) | [`smartsheet`](https://smartsheet-platform.github.io/api-docs) | [`smugmug`](https://api.smugmug.com) | [`snapchat`](https://kit.snapchat.com) | [`socialpilot`](https://developer.socialpilot.co) | [`socrata`](https://dev.socrata.com) | [`soundcloud`](https://developers.soundcloud.com) | [`spotify`](https://developer.spotify.com) | [`square`](https://squareup.com/developers) | [`stackexchange`](https://api.stackexchange.com) | [`stocktwits`](https://api.stocktwits.com/developers) | [`stormz`](https://developer.stormz.me) | [`strava`](https://developers.strava.com) | [`stripe`](https://stripe.com/docs) | [`surveygizmo`](https://apihelp.surveygizmo.com) | [`surveymonkey`](https://developer.surveymonkey.com) | [`thingiverse`](https://www.thingiverse.com/developers) | [`ticketbud`](https://api.ticketbud.com) | [`timelyapp`](https://dev.timelyapp.com) | [`todoist`](https://developer.todoist.com) | [`trakt`](https://trakt.docs.apiary.io) | [`traxo`](https://developer.traxo.com) | [`trello`](https://developers.trello.com) | [`tripit`](https://www.tripit.com/developer) | [`tumblr`](https://www.tumblr.com/docs/en/api/v2) | [`twitch`](https://dev.twitch.tv) | [`twitter`](https://developer.twitter.com) | [`typeform`](https://developer.typeform.com) | [`uber`](https://developer.uber.com) | [`underarmour`](https://developer.underarmour.com) | [`unsplash`](https://unsplash.com/documentation) | [`upwork`](https://developers.upwork.com) | [`uservoice`](https://developer.uservoice.com) | [`vend`](https://developers.vendhq.com) | [`venmo`](https://developers.braintreepayments.com/guides/venmo/overview/) | [`verticalresponse`](http://developers.verticalresponse.com) | [`viadeo`](https://partners.viadeo.com) | [`vimeo`](https://developer.vimeo.com) | [`visualstudio`](https://docs.microsoft.com/en-us/vsts/integrate/get-started/authentication/oauth?view=vsts) | [`vk`](https://vk.com/dev) | [`wechat`](https://mp.weixin.qq.com) | [`weekdone`](https://weekdone.com/developer) | [`weibo`](https://open.weibo.com) | [`withings`](http://developer.withings.com) | [`wordpress`](https://developer.wordpress.com) | [`wrike`](https://developers.wrike.com) | [`xero`](https://developer.xero.com) | [`xing`](https://dev.xing.com) | [`yahoo`](https://developer.yahoo.com) | [`yammer`](https://developer.yammer.com/docs) | [`yandex`](https://tech.yandex.com) | [`zendesk`](https://developer.zendesk.com) | [`zoom`](https://marketplace.zoom.us/docs) | ||
[`23andme`](https://api.23andme.com) | [`500px`](https://github.com/500px/api-documentation) | [`acton`](https://developer.act-on.com) | [`acuityscheduling`](https://developers.acuityscheduling.com) | [`aha`](https://www.aha.io/api) | [`amazon`](https://login.amazon.com/documentation) | [`angellist`](https://angel.co/api) | [`arcgis`](https://developers.arcgis.com) | [`asana`](https://asana.com/developers) | [`assembla`](https://api-docs.assembla.cc) | [`atlassian`](https://developer.atlassian.com) | [`auth0`](https://auth0.com/docs) | [`authentiq`](https://www.authentiq.com/developers) | [`aweber`](https://api.aweber.com) | [`axosoft`](https://developer.axosoft.com) | [`baidu`](https://developer.baidu.com) | [`basecamp`](https://github.com/basecamp/bc3-api) | [`battlenet`](https://develop.battle.net) | [`beatport`](https://oauth-api.beatport.com) | [`bitbucket`](https://developer.atlassian.com/bitbucket/api/2/reference/) | [`bitly`](https://dev.bitly.com) | [`box`](https://developer.box.com) | [`buffer`](https://buffer.com/developers) | [`campaignmonitor`](https://www.campaignmonitor.com/api) | [`cheddar`](https://cheddarapp.com/developer) | [`clio`](https://app.clio.com/api/v4/documentation) | [`coinbase`](https://developers.coinbase.com) | [`concur`](https://developer.concur.com) | [`constantcontact`](https://developer.constantcontact.com) | [`coursera`](https://building.coursera.org) | [`dailymotion`](https://developer.dailymotion.com) | [`deezer`](https://developers.deezer.com) | [`delivery`](https://developers.delivery.com) | [`deputy`](https://www.deputy.com/api-doc/) | [`deviantart`](https://www.deviantart.com/developers/) | [`digitalocean`](https://developers.digitalocean.com) | [`discogs`](https://www.discogs.com/developers/) | [`discord`](https://discordapp.com/developers/docs/intro) | [`disqus`](https://disqus.com/api/docs) | [`docusign`](https://developers.docusign.com) | [`dribbble`](https://developer.dribbble.com) | [`dropbox`](https://www.dropbox.com/developers) | [`ebay`](https://developer.ebay.com) | [`echosign`](https://secure.echosign.com/public/docs/restapi/v3) | [`ecwid`](https://developers.ecwid.com) | [`edmodo`](https://partnerships.edmodo.com) | [`egnyte`](https://developers.egnyte.com) | [`etsy`](https://www.etsy.com/developers) | [`eventbrite`](https://www.eventbrite.com/platform) | [`evernote`](https://dev.evernote.com) | [`eyeem`](https://github.com/eyeem/Public-API) | [`facebook`](https://developers.facebook.com) | [`familysearch`](https://www.familysearch.org/developers/) | [`feedly`](https://developer.feedly.com) | [`fitbit`](https://dev.fitbit.com) | [`flattr`](http://developers.flattr.net) | [`flickr`](https://www.flickr.com/services) | [`flowdock`](https://www.flowdock.com/api) | [`formstack`](https://developers.formstack.com) | [`foursquare`](https://developer.foursquare.com) | [`freeagent`](https://dev.freeagent.com) | [`freelancer`](https://developers.freelancer.com) | [`freshbooks`](https://www.freshbooks.com/developers) | [`geeklist`](http://hackers.geekli.st) | [`genius`](https://docs.genius.com) | [`getbase`](https://developers.getbase.com) | [`getpocket`](https://getpocket.com/developer) | [`gitbook`](https://developer.gitbook.com) | [`github`](https://developer.github.com) | [`gitlab`](https://docs.gitlab.com/ce/api/) | [`gitter`](https://developer.gitter.im) | [`goodreads`](https://www.goodreads.com/api) | [`google`](https://developers.google.com) | [`groove`](https://www.groovehq.com/docs) | [`gumroad`](https://gumroad.com/api) | [`harvest`](https://help.getharvest.com/api-v2/) | [`hellosign`](https://www.hellosign.com/api) | [`heroku`](https://devcenter.heroku.com/categories/platform-api) | [`homeaway`](https://www.homeaway.com/platform) | [`hootsuite`](https://developer.hootsuite.com) | [`ibm`](https://www.ibm.com/support/knowledgecenter/SSAT72/com.ibm.help.ssm_adminguide.doc/t_RegisteringforblueID.html) | [`iconfinder`](https://developer.iconfinder.com) | [`idme`](https://developer.id.me) | [`idonethis`](https://i-done-this.readme.io/docs) | [`imgur`](https://apidocs.imgur.com) | [`infusionsoft`](https://developer.infusionsoft.com) | [`instagram`](https://instagram.com/developer) | [`intuit`](https://developer.intuit.com) | [`jamendo`](https://devportal.jamendo.com/) | [`jumplead`](https://developer.jumplead.com) | [`kakao`](https://developers.kakao.com) | [`line`](https://developers.line.biz) | [`linkedin`](https://www.linkedin.com/developers) | [`live`](https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth?view=odsp-graph-online) | [`lyft`](https://developer.lyft.com) | [`mailchimp`](https://developer.mailchimp.com) | [`mailup`](http://help.mailup.com/display/mailupapi/REST+API) | [`mailxpert`](https://dev.mailxpert.ch) | [`mapmyfitness`](https://developer.underarmour.com) | [`mastodon`](https://docs.joinmastodon.org/) | [`medium`](https://developers.medium.com) | [`meetup`](https://www.meetup.com/meetup_api/) | [`mention`](https://dev.mention.com) | [`microsoft`](https://developer.microsoft.com/en-us/graph) | [`mixcloud`](https://www.mixcloud.com/developers) | [`mixer`](https://dev.mixer.com) | [`moxtra`](https://developer.moxtra.com) | [`myob`](https://developer.myob.com) | [`naver`](https://developers.naver.com) | [`nest`](https://developers.nest.com) | [`nokotime`](https://developer.nokotime.com) | [`nylas`](https://docs.nylas.com) | [`okta`](https://developer.okta.com/) | [`onelogin`](https://developers.onelogin.com) | [`openstreetmap`](https://wiki.openstreetmap.org/wiki/API_v0.6) | [`optimizely`](https://developers.optimizely.com) | [`patreon`](https://docs.patreon.com) | [`paypal`](https://developer.paypal.com) | [`phantauth`](https://www.phantauth.net) | [`pinterest`](https://developers.pinterest.com) | [`plurk`](https://www.plurk.com/API) | [`podio`](https://developers.podio.com) | [`producthunt`](https://api.producthunt.com/v2/docs) | [`projectplace`](https://service.projectplace.com/apidocs) | [`pushbullet`](https://docs.pushbullet.com) | [`qq`](https://wiki.connect.qq.com/%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C_oauth2-0) | [`ravelry`](https://www.ravelry.com/api) | [`redbooth`](https://redbooth.com/api) | [`reddit`](https://www.reddit.com/dev/api) | [`runkeeper`](https://runkeeper.com/developer/healthgraph/) | [`salesforce`](https://developer.salesforce.com) | [`shoeboxed`](https://github.com/Shoeboxed/api) | [`shopify`](https://developers.shopify.com) | [`skyrock`](https://www.skyrock.com/developer) | [`slack`](https://api.slack.com) | [`slice`](https://developer.slice.com) | [`smartsheet`](https://smartsheet-platform.github.io/api-docs) | [`smugmug`](https://api.smugmug.com) | [`snapchat`](https://kit.snapchat.com) | [`socialpilot`](https://developer.socialpilot.co) | [`socrata`](https://dev.socrata.com) | [`soundcloud`](https://developers.soundcloud.com) | [`spotify`](https://developer.spotify.com) | [`square`](https://squareup.com/developers) | [`stackexchange`](https://api.stackexchange.com) | [`stocktwits`](https://api.stocktwits.com/developers) | [`stormz`](https://developer.stormz.me) | [`strava`](https://developers.strava.com) | [`stripe`](https://stripe.com/docs) | [`surveygizmo`](https://apihelp.surveygizmo.com) | [`surveymonkey`](https://developer.surveymonkey.com) | [`thingiverse`](https://www.thingiverse.com/developers) | [`ticketbud`](https://api.ticketbud.com) | [`timelyapp`](https://dev.timelyapp.com) | [`todoist`](https://developer.todoist.com) | [`trakt`](https://trakt.docs.apiary.io) | [`traxo`](https://developer.traxo.com) | [`trello`](https://developers.trello.com) | [`tripit`](https://www.tripit.com/developer) | [`tumblr`](https://www.tumblr.com/docs/en/api/v2) | [`twitch`](https://dev.twitch.tv) | [`twitter`](https://developer.twitter.com) | [`typeform`](https://developer.typeform.com) | [`uber`](https://developer.uber.com) | [`underarmour`](https://developer.underarmour.com) | [`unsplash`](https://unsplash.com/documentation) | [`upwork`](https://developers.upwork.com) | [`uservoice`](https://developer.uservoice.com) | [`vend`](https://developers.vendhq.com) | [`venmo`](https://developers.braintreepayments.com/guides/venmo/overview/) | [`verticalresponse`](http://developers.verticalresponse.com) | [`viadeo`](https://partners.viadeo.com) | [`vimeo`](https://developer.vimeo.com) | [`visualstudio`](https://docs.microsoft.com/en-us/vsts/integrate/get-started/authentication/oauth?view=vsts) | [`vk`](https://vk.com/dev) | [`wechat`](https://mp.weixin.qq.com) | [`weekdone`](https://weekdone.com/developer) | [`weibo`](https://open.weibo.com) | [`withings`](http://developer.withings.com) | [`wordpress`](https://developer.wordpress.com) | [`wrike`](https://developers.wrike.com) | [`xero`](https://developer.xero.com) | [`xing`](https://dev.xing.com) | [`yahoo`](https://developer.yahoo.com) | [`yammer`](https://developer.yammer.com/docs) | [`yandex`](https://tech.yandex.com) | [`zendesk`](https://developer.zendesk.com) | [`zoom`](https://marketplace.zoom.us/docs) | ||
@@ -166,2 +166,3 @@ | ||
## Reserved Routes | ||
@@ -187,3 +188,3 @@ | ||
The `protocol` and the `host` are the options you specify inside the `defaults` key of your [configuration](#configuration), and this is where your Grant server is listening. The `provider` is a key in your configuration, usually one of the [officially supported](#grant) providers. | ||
The `protocol` and the `host` are the options you specify inside the `defaults` key of your [configuration](#configuration), and this is where your server accepts incoming requests. The `provider` is a key in your configuration, usually one of the [officially supported](#grant) providers. | ||
@@ -259,2 +260,3 @@ Note that the `/connect/:provider/callback` route is used **internally** by Grant! You will receive the OAuth [response data](#response-data) inside the `callback` route specified in your configuration. | ||
## Custom Parameters | ||
@@ -346,3 +348,3 @@ | ||
Alternatively you can make a `GET` request to the `/connect/:provider/:override?` route: | ||
Alternatively you can use a `GET` request for the `/connect/:provider/:override?` route: | ||
@@ -361,5 +363,5 @@ ``` | ||
- You can instruct Grant to return the response data in the **session** [instead](#response-data-transport), by using the `transport` option. | ||
- You can instruct Grant to return the response data inside the **session** [instead](#response-data-transport) instead, by using the `transport` option. | ||
- You can **limit** [the amount of data](#limit-response-data) returned by using the `response` option. | ||
- You can **limit** the amount of [returned data](#limit-response-data) by using the `response` option. | ||
@@ -425,3 +427,3 @@ ## OAuth 2.0 | ||
This final `/hello?access_token=...` redirect can potentially leak private data in your server logs, especially if you are behind reverse proxy. | ||
This final `/hello?access_token=...` redirect potentially may leak private data in your server logs, especially if you are behind reverse proxy. | ||
@@ -522,3 +524,2 @@ It is **recommended** to use the *session* `transport` instead: | ||
scope_delimiter | [oauth.json][oauth-config] | string delimiter used for concatenating multiple scopes | ||
custom_parameters | [oauth.json][oauth-config] | list of known custom authorization parameters | ||
protocol, host, path | `defaults` | used to generate `redirect_uri` | ||
@@ -703,5 +704,7 @@ transport | `defaults` | [transport](#response-data-transport) to use to deliver the response data in your final `callback` route | ||
"google": { | ||
"app": "My Awesome OAuth App", | ||
"owner": "my_email@gmail.com", | ||
"url": "https://url/to/manage/oauth/app" | ||
"meta": { | ||
"app": "My Awesome OAuth App", | ||
"owner": "my_email@gmail.com", | ||
"url": "https://url/to/manage/oauth/app" | ||
} | ||
} | ||
@@ -711,3 +714,3 @@ } | ||
> These custom keys cannot be [reserved ones][reserved-keys]. | ||
> In the example above `meta` is an arbitrary key, but it cannot be one of the [reserved keys][reserved-keys]. | ||
@@ -855,8 +858,5 @@ --- | ||
Initially these were OAuth1 providers, so the `fitbit`, `linkedin` and `projectplace` names are used for that. To use their OAuth2 flow append `2` at the end of their names: | ||
Initially these were OAuth1 providers, so the `linkedin` and `projectplace` names are used for that. To use their OAuth2 flow append `2` at the end of their names: | ||
```js | ||
"fitbit2": { | ||
// navigate to /connect/fitbit2 | ||
}, | ||
"linkedin2": { | ||
@@ -863,0 +863,0 @@ // navigate to /connect/linkedin2 |
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
199731
4493