Commit 34df8428 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

Fix use of client_id property name

parent b689afb4
Pipeline #5352 passed with stages
in 4 minutes and 16 seconds
...@@ -26,7 +26,7 @@ class Component extends PureComponent { ...@@ -26,7 +26,7 @@ class Component extends PureComponent {
// console.log("currentURL", currentURL) // console.log("currentURL", currentURL)
this.state = { this.state = {
clientId: "6233aedf-f08a-4112-9a1b-f33c3cd9b396", client_id: "6233aedf-f08a-4112-9a1b-f33c3cd9b396",
// clientSecret: "", // clientSecret: "",
redirectURL: currentURL, redirectURL: currentURL,
// scopes: "", // scopes: "",
...@@ -37,7 +37,7 @@ class Component extends PureComponent { ...@@ -37,7 +37,7 @@ class Component extends PureComponent {
authenticateStart() { authenticateStart() {
let config = Object.assign({}, this.props.serverConfig, this.state) let config = Object.assign({}, this.props.serverConfig, this.state)
console.error("Authenticaiton start with config", config)
this.props.authenticateStart(config) this.props.authenticateStart(config)
} }
...@@ -78,8 +78,8 @@ class Component extends PureComponent { ...@@ -78,8 +78,8 @@ class Component extends PureComponent {
let clientId = '' let clientId = ''
if (this.props.serverConfig && this.props.serverConfig.client_id) { if (this.props.serverConfig && this.props.serverConfig.client_id) {
clientId = this.props.serverConfig.client_id clientId = this.props.serverConfig.client_id
} else if (this.state && this.state.clientId) { } else if (this.state && this.state.client_id) {
clientId = this.state.clientId clientId = this.state.client_id
} }
let clientSecret = '' let clientSecret = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment