johnbrett / hapi-auth-bearer-token

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.
MIT License
218 stars 46 forks source link

Configurable unauthorized function #128

Closed wennergr closed 7 years ago

wennergr commented 7 years ago

Added support for a custom function that replaces the default Boom.unauthorized. This inceases flexibility and allows us, for example, to return a 404 or a 301 in case the client is unauthorized.

johnbrett commented 7 years ago

Sorry for delay on this @wennergr will look at this on Monday for you!

wennergr commented 7 years ago

Hey @johnbrett

Any updates on this? (no rush)

johnbrett commented 7 years ago

Published 5.1.0. Sincere apology for the delay on this @wennergr, things have been a little crazy lately! Nice implementation also 👍