Per the Hapi docs:
https://hapijs.com/api#serverauthschemename-scheme
I should be able to provide Boom.unauthorized(null, 'Custom') to the callback of the validateFunc to cause Hapi to try the next auth strategy.
Unfortunately, hapi-auth-cookie ignores the 'err' parameter of the callback and forms its own Boom.unauthorized(), so there's no way to make this happen without code changes.
Standby, I'll submit a PR for this.
Per the Hapi docs:
https://hapijs.com/api#serverauthschemename-scheme
I should be able to provide Boom.unauthorized(null, 'Custom') to the callback of the validateFunc to cause Hapi to try the next auth strategy.
Unfortunately, hapi-auth-cookie ignores the 'err' parameter of the callback and forms its own Boom.unauthorized(), so there's no way to make this happen without code changes.
Standby, I'll submit a PR for this.