Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCustomize Tyk Auth Error Response Messages #2652
Open
Labels
Comments
This comment has been minimized.
This comment has been minimized.
For scenario 1, it'd be nice to be able to change the response code without adding a redirect. |
This comment has been minimized.
This comment has been minimized.
I agree - what I would hope to see is full customization = things I don't touch stay default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
As a user of a front-end application, I am frustrated because when not logged in or using the wrong credentials, I don't get enough information in the error response from the API Gateway.
Describe the solution you'd like
As an API Owner, I'd like to be able to customize the error messages that Tyk will send. I'd like to customize both the Body as well as the Headers.
scenario 1)
IE if my Auth field is missing, I want to redirect to my login screen
modify response code: from 401 to 403
and enter a URL redirect
scenario 2)
IE if my AUTH field is missing, I want to change the body from:
to:
I'd like to edit this via the Dashboard. I'm not sure if this is best implemented at an API or Global level.