我使用AdonisJS v4,我想扩展Ally,即AdonisJS的auth扩展。
this._getAccessTokenUrl()
解析this._baseSite + this._accessTokenUrl
但Bit.ly的端点网址为 https://bitly.com/ ,授权网址为 oauth / authorize ,访问令牌网址为 {{ 3}}
/**
* Base url to be used for constructing
* google oauth urls.
*
* @attribute baseUrl
*
* @return {String}
*/
get baseUrl () {
return 'https://bitly.com/'
}
/**
* Relative url to be used for redirecting
* user.
*
* @attribute authorizeUrl
*
* @return {String} [description]
*/
get authorizeUrl () {
return 'oauth/authorize'
}
/**
* Relative url to be used for exchanging
* access token.
*
* @attribute accessTokenUrl
*
* @return {String}
*/
get accessTokenUrl () {
return 'https://api-ssl.bitly.com/oauth/access_token'
}
授权网址为:https://api-ssl.bitly.com/oauth/access_token 访问令牌网址(不正确):https://bitly.com/oauth/authorize
在Ally的提供者中添加Bitly是不可能的,你能帮帮我吗?