fix trailing slash
This commit is contained in:
parent
f14f42404e
commit
2587d03860
|
@ -930,7 +930,7 @@
|
||||||
else {
|
else {
|
||||||
return OAUTH3.request({
|
return OAUTH3.request({
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
, url: OAUTH3.url.normalize(providerUri) + opts._pathname // '/.well-known/oauth3/' + discoverFile
|
, url: OAUTH3.url.normalize(providerUri) + '/' + opts._pathname // '/.well-known/oauth3/' + discoverFile
|
||||||
}).then(function (resp) {
|
}).then(function (resp) {
|
||||||
return resp.data;
|
return resp.data;
|
||||||
});
|
});
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
onError(err);
|
onError(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
OAUTH3.request({ url: 'directives.json' }).then(function (resp) {
|
OAUTH3.request({ url: params._pathname.replace(/^\.well-known\/oauth3\//, '') }).then(function (resp) {
|
||||||
urlsafe64 = OAUTH3._base64.encodeUrlSafe(JSON.stringify(resp.data, null, 0));
|
urlsafe64 = OAUTH3._base64.encodeUrlSafe(JSON.stringify(resp.data, null, 0));
|
||||||
|
|
||||||
onSuccess(urlsafe64);
|
onSuccess(urlsafe64);
|
||||||
|
|
Loading…
Reference in New Issue