I would like to allow only one domain to use the google oauth2 strategy.
After reading the feathersjs documentation, I found that I have two options to customise the authentication:
Implement custom Verifier.
Add a hook to the authentication service.
After comparing both, the Verifier seems to be the right place to do what I want, but reimplementing it from scratch just to verify that the email address is allowed seems to be too much.
I came to this repo to copy paste the Verifier that comes with authentication-oauth2 and modify it, but the verify methods depends on all the others so I can't just tweak the verify method and use it in a empty class that extends Verifier (such as mentionned in the doc).
Hi,
I would like to allow only one domain to use the google oauth2 strategy. After reading the feathersjs documentation, I found that I have two options to customise the authentication:
After comparing both, the Verifier seems to be the right place to do what I want, but reimplementing it from scratch just to verify that the email address is allowed seems to be too much.
I came to this repo to copy paste the Verifier that comes with authentication-oauth2 and modify it, but the verify methods depends on all the others so I can't just tweak the verify method and use it in a empty class that extends Verifier (such as mentionned in the doc).
What's the best way to achieve that ?
Thanks.