From 119b9acd4440d2c1f27c2e4f50683df60bdb4ca9 Mon Sep 17 00:00:00 2001 From: Jonathan Ruddell Date: Wed, 29 Apr 2020 15:27:13 -0400 Subject: [PATCH] add alert for OAuth auth-info fetch failure --- boilerplate/app/modules/login/login.sagas.js.ejs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boilerplate/app/modules/login/login.sagas.js.ejs b/boilerplate/app/modules/login/login.sagas.js.ejs index 474fcdfef..c0d3adadc 100644 --- a/boilerplate/app/modules/login/login.sagas.js.ejs +++ b/boilerplate/app/modules/login/login.sagas.js.ejs @@ -51,6 +51,9 @@ export function * login (api) { } } else { yield put(LoginActions.loginFailure((authInfo.data && authInfo.data.detail) || 'Could not connect to OAuth2 Provider')) + if (!authInfo.data) { + alert('Failed to fetch Auth Provider information from the backend API.') + } } }