mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 10:13:21 +00:00
(web) handle auth.oidc null value and update npm packages
This commit is contained in:
parent
bd3514d79a
commit
1a777868b5
|
@ -1303,7 +1303,7 @@ webpackJsonp([0],[
|
|||
return (0, _patternUtils.formatPattern)(cfg.routes.currentSession, { sid: sid, siteId: siteId });
|
||||
},
|
||||
getAuthProviders: function getAuthProviders() {
|
||||
return cfg.auth ? [cfg.auth.oidc] : [];
|
||||
return cfg.auth && cfg.auth.oidc ? [cfg.auth.oidc] : [];
|
||||
},
|
||||
getAuthType: function getAuthType() {
|
||||
return cfg.auth ? cfg.auth.type : null;
|
File diff suppressed because one or more lines are too long
2
web/dist/index.html
vendored
2
web/dist/index.html
vendored
|
@ -10,5 +10,5 @@
|
|||
<body class="grv">
|
||||
<div id="app"></div>
|
||||
<div id="bearer_token" style="display: none;">{{.Session}}</div>
|
||||
<script type="text/javascript" src="/web/app/vendor.cad10412a802f4fe148b.js"></script><script type="text/javascript" src="/web/app/styles.cad10412a802f4fe148b.js"></script><script type="text/javascript" src="/web/app/app.cad10412a802f4fe148b.js"></script></body>
|
||||
<script type="text/javascript" src="/web/app/vendor.372d8559f99a1a894a19.js"></script><script type="text/javascript" src="/web/app/styles.372d8559f99a1a894a19.js"></script><script type="text/javascript" src="/web/app/app.372d8559f99a1a894a19.js"></script></body>
|
||||
</html>
|
||||
|
|
|
@ -70,8 +70,8 @@
|
|||
"karma-spec-reporter": "0.0.24",
|
||||
"karma-webpack": "^1.7.0",
|
||||
"mocha": "^2.0.1",
|
||||
"node-inspector": "^0.12.3",
|
||||
"node-sass": "^3.3.2",
|
||||
"node-inspector": "^1.0.0",
|
||||
"node-sass": "^4.5.2",
|
||||
"raw-loader": "^0.5.1",
|
||||
"react-addons-test-utils": "15.1.0",
|
||||
"react-hot-loader": "^1.3.0",
|
||||
|
|
|
@ -133,7 +133,7 @@ let cfg = {
|
|||
},
|
||||
|
||||
getAuthProviders() {
|
||||
return cfg.auth ? [cfg.auth.oidc] : [];
|
||||
return cfg.auth && cfg.auth.oidc ? [cfg.auth.oidc] : [];
|
||||
},
|
||||
|
||||
getAuthType() {
|
||||
|
|
Loading…
Reference in a new issue