diff --git a/oauth3.core.js b/oauth3.core.js index cf82eb5..8e03884 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -713,6 +713,7 @@ method: 'GET' , url: OAUTH3.url.normalize(providerUri) + '/.well-known/oauth3/directives.json' }).then(function (resp) { + console.log('raw directives', resp); return resp.data; }); } diff --git a/well-known/oauth3/index.html b/well-known/oauth3/index.html index 6da3e63..94f32f2 100644 --- a/well-known/oauth3/index.html +++ b/well-known/oauth3/index.html @@ -31,7 +31,7 @@ console.log(params); OAUTH3.request({ url: 'directives.json' }).then(function (resp) { - var urlsafe64 = OAUTH3._base64.encodeUrlSafe(JSON.stringify(resp, null, 0)); + var urlsafe64 = OAUTH3._base64.encodeUrlSafe(JSON.stringify(resp.data, null, 0)); var redirect; console.log(prefix, 'directives');