Hello! I’m trying to implement blocking/unblocking...
# talk-kratos
m
Hello! I’m trying to implement blocking/unblocking feature using ORY. We have after login hook which checks what status the user in. The hook happens after login but before ORY session created. I managed to implement blocking/unblocking but I don’t know how can I specify the returning error. We use GOlang + Encore framework so what I do is returning 403 HTTP Status if the user is blocked. Unfortunately it returns 500 instead. When I try to specify the error I get
{
"error": {
"code": 502,
"status": "Bad Gateway",
"reason": "A third-party upstream service responded improperly. Please try again later.",
"message": "webhook failed with status code 403"
}
}
. I don’t parse response like
response:
parse: false