Skip to content

Add a lambda function to allow the modification of the SCIM error response #1990

Open
@jaywood128

Description

@jaywood128

Add a lambda function to allow the modification of the SCIM error response

Problem

The error response from a SCIM endpoint is not mutable. A specific example is when a webhook fails, and the following error is returned:

{
    "detail": "Request failed, see errors for additional details.",
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:Error",
        "urn:ietf:params:scim:schemas:extension:fusionauth:2.0:Error"
    ],
    "status": "400",
    "urn:ietf:params:scim:schemas:extension:fusionauth:2.0:Error": {
        "fieldErrors": {},
        "generalErrors": [
            {
                "code": "[WebhookTransactionException]",
                "message": "One or more webhooks returned an invalid response or were unreachable. Based on your transaction configuration, your action cannot be completed."
            }
        ]
    }
}

Solution

We could allow the errors object to be passed to a lambda function to allow for mutation or customization.

In a customer provided example, here is an ideal output for the above error.

{
    "detail": "Specific message generated dynamically by us and returned in the web-hook response.",
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:Error"
    ],
    "status": "409"
    }
}

Related

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions