- {!serverInfo.userInfo.isIAMUser && (
-
{
- this.setState({ newAccessKey: e.target.value })
- }}
- readonly={serverInfo.userInfo.isIAMUser}
- />
- )}
-
{
this.setState({
diff --git a/browser/app/js/browser/Login.js b/browser/app/js/browser/Login.js
index 19674a548..92ae308b9 100644
--- a/browser/app/js/browser/Login.js
+++ b/browser/app/js/browser/Login.js
@@ -22,14 +22,18 @@ import Alert from "../alert/Alert"
import * as actionsAlert from "../alert/actions"
import InputGroup from "./InputGroup"
import web from "../web"
-import { Redirect } from "react-router-dom"
+import { Redirect, Link } from "react-router-dom"
+import qs from "query-string"
+import storage from "local-storage-fallback"
+import history from "../history"
export class Login extends React.Component {
constructor(props) {
super(props)
this.state = {
accessKey: "",
- secretKey: ""
+ secretKey: "",
+ discoveryDoc: {}
}
}
@@ -83,6 +87,14 @@ export class Login extends React.Component {
document.body.classList.add("is-guest")
}
+ componentDidMount() {
+ web.GetDiscoveryDoc().then(({ DiscoveryDoc }) => {
+ this.setState({
+ discoveryDoc: DiscoveryDoc
+ })
+ })
+ }
+
componentWillUnmount() {
document.body.classList.remove("is-guest")
}
@@ -127,6 +139,15 @@ export class Login extends React.Component {
+ {this.state.discoveryDoc &&
+ this.state.discoveryDoc.authorization_endpoint && (
+
+ )}