hi, all, i wanna user login then using webhook no...
# talk-kratos
d
hi, all, i wanna user login then using webhook notification to slack but i got this message
Copy code
{
  "id": "xxxxxx",
  "error": {
    "code": 500,
    "status": "Internal Server Error",
    "message": "unable to fetch from source: {\"text\":\"Hello, World!111\"}: open {\"text\":\"Hello, World!111\"}: no such file or directory"
  },
  "created_at": "2023-06-06T10:11:12.607853Z",
  "updated_at": "2023-06-06T10:11:12.607853Z"
}
m
Hello @dazzling-secretary-51299 (hope I ping the right Sam, there is so many in this workspace 😅 ) Can you try adding the text as base64 encoded string? Let me know if that works please.
d
yes the sam is me bowtie thank you very much @magnificent-energy-493 i change text become
body: <base64://ewogICAgImFjY291bnQiOiJzYW0iLAogICAgInBhc3N3b3JkIjoiMTIzNCIs>
and it works 🎉👍 -- -- -- but actually I want to create a flow for users before they log in. First, I will check if the account/password exists in Krasto. (event don't know how right now) If it does not exist, I will use a webhook to request information from
my API
.
My API
will respond whether the account/password is correct or not. The API response will look like:
Copy code
{
  "account": "sam",
  "password": "1234abcd",
  "is_correct": true
}
If the value of 'is_correct' is true, I will write the member information (account/password) into Krasto's identities table based on my API's response. If the account/password already exists in Krasto, the user can proceed with logging in. Is this flow possible or what i need to study for this flow?