From aaeacfc33bfbc3fa932c7e85b8e38bcede5b38c4 Mon Sep 17 00:00:00 2001 From: hellkama Date: Mon, 17 Oct 2016 01:32:30 +0300 Subject: [PATCH 1/2] Fixed 'redirect_url' to 'redirect_uri' --- src/ADLoginView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ADLoginView.js b/src/ADLoginView.js index f6b0fa7..d161c14 100644 --- a/src/ADLoginView.js +++ b/src/ADLoginView.js @@ -118,7 +118,7 @@ export default class ADLoginView extends React.Component { if(context !== null) { let result = `${authUrl}?response_type=code` + `&client_id=${context.getConfig().client_id}` + - (redirect ? `&redirect_url=${context.getConfig().redirect_uri}&nonce=rnad-${Date.now()}` : '') + (redirect ? `&redirect_uri=${context.getConfig().redirect_uri}&nonce=rnad-${Date.now()}` : '') if(this._needRedirect) result = `https://login.windows.net/${this.props.context.getConfig().client_id}/oauth2/logout` return result From fdeacceaffa8e8b4a06ae48781319db1340c2e9f Mon Sep 17 00:00:00 2001 From: hellkama Date: Mon, 17 Oct 2016 01:34:44 +0300 Subject: [PATCH 2/2] Fixed 'redirectUrl' to 'redirect_uri' in example --- src/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/README.md b/src/README.md index 5a6fe75..f7a6e28 100644 --- a/src/README.md +++ b/src/README.md @@ -52,7 +52,7 @@ class LandingView extends React.Component { this.AzureADContext = { client_id : CLIENT_ID, // Optional - redirectUrl : 'http://localhost:8080', + redirect_uri : 'http://localhost:8080', // Optional authority_host : 'https://login.microsoftonline.com/common/oauth2/authorize', // Optional