import React, { PureComponent } from 'react' import {Alert, InputGroup, Navbar, Nav, NavItem, NavDropdown, MenuItem, Glyphicon, Jumbotron, Button} from 'react-bootstrap' import {Panel, Row, Col, Collapse, FormControl, FormGroup, ControlLabel, HelpBlock} from 'react-bootstrap' import FontAwesome from 'react-fontawesome' import WhiteBox from './WhiteBox' class Component extends PureComponent { constructor(props) { super(props) console.log("--- props", this.props) this.state = { clientId: "6233aedf-f08a-4112-9a1b-f33c3cd9b396", clientSecret: "af85a0f0-2c68-421d-8228-a6c83628de19" } } authenticateStart() { console.error("Authenticate") let config = Object.assign({}, this.props.serverConfig, this.state) this.props.authenticateStart(config) } updateFieldHandler(field) { return (e) => { this.setState({ [field]: e.target.value }) } } render() { console.log("X This state", this.props) console.log("X This state", this.state) let authorizationEndpoint = '' if (this.state.authorizationEndpoint) { authorizationEndpoint = this.state.authorizationEndpoint } else if (this.props.serverConfig) { authorizationEndpoint = this.props.serverConfig.authorization_endpoint } let tokenEndpoint = '' if (this.state.tokenEndpoint) { tokenEndpoint = this.state.tokenEndpoint } else if (this.props.serverConfig) { tokenEndpoint = this.props.serverConfig.token_endpoint } let expanded = !!this.props.serverConfig return (

OAuth Authorization endpoint

OAuth Token endpoint

Client ID

Client secret

Redirect URI

When you configure your client, please register the following redirect uri:

http://localhost:8080/callback

) } } export default Component