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 {
// console.log("currentURL", currentURL)
this.state = {
clientId: "6233aedf-f08a-4112-9a1b-f33c3cd9b396",
client_id: "6233aedf-f08a-4112-9a1b-f33c3cd9b396",
// clientSecret: "",
redirectURL: currentURL,
// scopes: "",
......@@ -37,7 +37,7 @@ class Component extends PureComponent {
authenticateStart() {
let config = Object.assign({}, this.props.serverConfig, this.state)
console.error("Authenticaiton start with config", config)
this.props.authenticateStart(config)
}
......@@ -78,8 +78,8 @@ class Component extends PureComponent {
let clientId = ''
if (this.props.serverConfig && this.props.serverConfig.client_id) {
clientId = this.props.serverConfig.client_id
} else if (this.state && this.state.clientId) {
clientId = this.state.clientId
} else if (this.state && this.state.client_id) {
clientId = this.state.client_id
}
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