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
is this issue currently blocking your project? (yes/no): No
is this issue affecting a production system? (yes/no): No
Context
node version: v14.15.4
module version: v20.0.3
environment (e.g. node, browser, native): Node
used with (e.g. hapi application, another framework, standalone, ...): hapi application
any other relevant information:
How can we help?
While building an authentication strategy, I found myself depending on the current realm "parent" relationship, which I had originally assumed to work just like in plugins. Turns out, it works quite differently for authentication strategies:
I had a hard time understanding why the test above passed, but after some consideration I found that authentication strategies "parent" realm relationship would refer to the latest "realm" created, regardless of where in the plugin tree it was registered.
Not sure that is the expected behavior or not, but a better documentation of how authentication strategies realm's work would have helped. Would you accept a pull request adding a bit of additional information to the "server.realm" section?
The text was updated successfully, but these errors were encountered:
I took a look at this, and there's definitely a bug at play as it relates to the realm of the strategy. As part of this we should clarify the expected behavior in the docs too 👍
Support plan
Context
How can we help?
While building an authentication strategy, I found myself depending on the current realm "parent" relationship, which I had originally assumed to work just like in plugins. Turns out, it works quite differently for authentication strategies:
I had a hard time understanding why the test above passed, but after some consideration I found that authentication strategies "parent" realm relationship would refer to the latest "realm" created, regardless of where in the plugin tree it was registered.
Not sure that is the expected behavior or not, but a better documentation of how authentication strategies realm's work would have helped. Would you accept a pull request adding a bit of additional information to the "server.realm" section?
The text was updated successfully, but these errors were encountered: