some-painting-28549
05/14/2024, 6:10 PMchilly-king-10285
05/14/2024, 6:10 PMchilly-king-10285
05/14/2024, 6:11 PMsessionsessionsessionsessionsessionsome-painting-28549
05/14/2024, 7:56 PMchilly-king-10285
05/14/2024, 7:56 PMchilly-king-10285
05/14/2024, 7:57 PM403errorerror_debugerror_descriptionerror_hintstatus_codepython error_response = {     "error": "Error",     "error_debug": "Error Debug Information",     "error_description": "Error Description",     "error_hint": "The redirect URL is not allowed.",     "status_code": 401 } raise HTTPException(status_code=401, detail=error_response)error_hinterror_debugstatus_codesome-painting-28549
05/14/2024, 8:03 PM{
  "id": "63982532-52f0-4d83-bdbb-c6b52d2436bd",
  "error": {
    "code": 500,
    "message": "error while parsing webhook response: got no validation errors",
    "status": "Internal Server Error"
  },
  "created_at": "2024-05-14T20:02:22.648126Z",
  "updated_at": "2024-05-14T20:02:22.648126Z"chilly-king-10285
05/14/2024, 8:03 PMchilly-king-10285
05/14/2024, 8:04 PMjson {   "messages": [     {       "instance_ptr": "#/traits/foo/bar",  // Points to the field that failed validation.       "messages": [         {           "id": 123,  // Unique numeric ID of the error.           "text": "field must be longer than 12 characters",  // Human-readable error message.           "type": "validation",           "context": {             "value": "short value"  // The value that failed validation.           }         }       ]     }   ] }python error_response = {     "messages": [         {             "instance_ptr": "#/traits/email",  # Points to the field that failed validation.             "messages": [                 {                     "id": 404,  # Unique numeric ID of the error.                     "text": "user is not whitelisted",  # Human-readable error message.                     "type": "validation",                     "context": {                         "value": email  # The value that failed validation.                     }                 }             ]         }     ] } raise HTTPException(status_code=404, detail=error_response)some-painting-28549
05/15/2024, 2:23 PMchilly-king-10285
05/15/2024, 2:23 PMchilly-king-10285
05/15/2024, 2:23 PMjson {   "id": 1040006,   "text": "Sign up with code",   "type": "info" }some-painting-28549
05/15/2024, 2:25 PMchilly-king-10285
05/15/2024, 2:25 PMchilly-king-10285
05/15/2024, 2:25 PMsome-painting-28549
05/15/2024, 2:25 PMchilly-king-10285
05/15/2024, 2:25 PMchilly-king-10285
05/15/2024, 2:26 PMafterafterpasswordpasswordafteryaml selfservice:    flows:    login: # Defines for which flow triggers the action.    before: # When the user starts the flow    hooks:    - hook: hook_1 # Specifies which hook is triggered.    after: # When the user submits the flow    hooks:    - hook: hook_2 # is executed for all authentication methods except password    password:    hooks:    - hook: hook_3 # is executed only for password methodhook_3hook_2hook_1