You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Override default functionality for Parse Server express routes #8126
Currently, it's not possible to modify the default routing behaviour for Parse Server. For example, we want to be able to customise our login to be handled outside of Parse's own handler and then respond to the client seamlessly as if they are interacting with Parse. At present, there isn't a clean way to achieve this.
Feature / Enhancement Description
An interface to override specific routes with custom functionality.
Example Use Case
We want to override Parse's default login functionality and implement my own that reaches out to a third party API. Once the response is returned from said API, it would pass down the correct response to satisfy the client without any code changes required client-side.
Alternatives / Workarounds
Iterating over mounted routes and overriding the express handler function.
I assume #7079 would also not help, because you are looking to completely override the login route, correct?
You're correct, it wouldn't help for our use case. The issue with leveraging a custom auth adapter is it would require modifying all the clients to send the additional authData property.
Activity
parse-github-assistant commentedon Aug 10, 2022
Thanks for opening this issue!
mtrezza commentedon Aug 11, 2022
I assume #7079 would also not help, because you are looking to completely override the login route, correct?
simontong commentedon Aug 11, 2022
You're correct, it wouldn't help for our use case. The issue with leveraging a custom auth adapter is it would require modifying all the clients to send the additional
authDataproperty.