Not able to Sign In using Angular #1027
-
For ORY Kratos login I cannot directly use just the HTML form with action in Angular because I need to send { withCredentials: true } in the request. But when I do, I am not getting an error but the flow is not logging in as well. This is my Angular code for Logging in: login(flowId, identifier, password, csrf_token){
let headers: HttpHeaders = new HttpHeaders();
headers.append('Content-Type', 'application/x-www-form-urlencoded');
headers.append('Accept', 'application/json');
let formData = new FormData();
formData.append("identifier", identifier);
formData.append("password", password);
formData.append("csrf_token", csrf_token);
console.log(formData)
return this.http.post('/self-service/login/methods/password', formData, { headers: headers, params: { flow: flowId },
withCredentials: true});
} I get the 302 response with location as http://127.0.0.1:4455/auth/login?flow=8bb90a97-cc07-4832-8d88-be343d540352 I am not able to understand how the properties identifier and password be missing as I have provided them. |
Beta Was this translation helpful? Give feedback.
@vinckr