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
Ran into a use case where a dev wanted to run some code before all handlers after authentication had run. The dev was trying to use the before_request hook which probably would have worked if we were doing auth in middleware or with a hook like other frameworks do.
Unfortunately as it stands the only way to do this in rebar currently is to modify the Authenticator. This seems like something that we should really have a hook for so that devs can easily add code to be run after authentication but before the handler.
The text was updated successfully, but these errors were encountered:
No parameter. Either the rebar object or the registry object would hold the hook function list reference and expose the method to register(add) another function to be run after authentication but before the handler.
Ran into a use case where a dev wanted to run some code before all handlers after authentication had run. The dev was trying to use the
before_request
hook which probably would have worked if we were doing auth in middleware or with a hook like other frameworks do.Unfortunately as it stands the only way to do this in rebar currently is to modify the Authenticator. This seems like something that we should really have a hook for so that devs can easily add code to be run after authentication but before the handler.
The text was updated successfully, but these errors were encountered: