Hi there,
We have two apps, 1)we use flowable for the admin and 2)spring boot with reactjs for core.
How can I use flowable-idm for authentication in reactjs? When I logged in to flowable-idm, it doesn’t throw token in response.
See:
Hi @Robinyo,
I tried the following code in reactjs and it gives me Status 200 when I successfully login. However, it doesn’t give me data in devtools Response tab. How will I know when the client session will expire?
onSubmit(e) {
e.preventDefault()
const data ="j_username=" + encodeURIComponent(this.state.name) +"&j_password=" + encodeURIComponent(this.state.password)+"&_spring_security_remember_me=true&submit=Login";
axios.post('http://localhost:8080/flowable-idm/app/authentication', data, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
ignoreAuthModule: 'ignoreAuthModule'
}).then((res) => {
console.log(res.data)
}).catch((error) => {
console.log(error)
});
}