[BeatsCM] return null for no user authentication in a request (#27342)

This commit is contained in:
Matt Apperson 2018-12-17 21:16:35 -05:00 committed by GitHub
parent ccfa8a3530
commit b1b5d623cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,6 +131,9 @@ export class KibanaBackendFrameworkAdapter implements BackendFrameworkAdapter {
} catch (e) {
return null;
}
if (user === null) {
return null;
}
const assertKibanaUser = RuntimeKibanaUser.decode(user);
if (assertKibanaUser.isLeft()) {
throw new Error(