Skip to content

Override default functionality for Parse Server express routes #8126

Open

Description

@simontong

New Feature / Enhancement Checklist

Current Limitation

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.

3rd Party References

No

Activity

  1. parse-github-assistant commented on Aug 10, 2022

    @parse-github-assistant

    Thanks for opening this issue!

    • 🎉 We are excited about your ideas for improvement!
  2. mtrezza commented on Aug 11, 2022

    @mtrezza
    Member

    I assume #7079 would also not help, because you are looking to completely override the login route, correct?

  3. simontong commented on Aug 11, 2022

    @simontong
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions