This commit is contained in:
AJ ONeal 2017-05-24 08:05:23 +00:00
parent 91cd5d87fd
commit 0562b58761
1 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ OAUTH3.requests.accounts = {};
OAUTH3.requests.accounts.update = function (directive, session, opts) {
var dir = directive.update_account || {
method: 'POST'
, url: 'https://' + directive.provider_url + '/api/org.oauth3.provider/accounts/:accountId'
, url: OAUTH3.url.normalize(directive.api) + '/api/org.oauth3.provider/accounts/:accountId'
, bearer: 'Bearer'
};
var url = dir.url
@ -465,7 +465,7 @@ OAUTH3.requests.accounts.update = function (directive, session, opts) {
OAUTH3.requests.accounts.create = function (directive, session, account) {
var dir = directive.create_account || {
method: 'POST'
, url: 'https://' + directive.api + '/api/org.oauth3.provider/accounts'
, url: OAUTH3.url.normalize(directive.api) + '/api/org.oauth3.provider/accounts'
, bearer: 'Bearer'
};
var data = {