From 6092408a3f067844ace5a969b349de3e0f44c7c8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 21 Feb 2017 17:05:23 -0700 Subject: [PATCH] bugfix --- oauth3.core.js | 1 + well-known/oauth3/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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');