Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCustom auth strategy #1553
Custom auth strategy #1553
Comments
|
Hi, custom apiKey strategy is only thing I have successfully set up after migrating to v4. Oauth still not working for me. authentication.js
/* eslint-disable require-atomic-updates */
};
|
|
In my example header key is "x-api-key" and I have array of tokens in config called allowed-tokens and this part Hope I help you and if you have working oauth google and facebook strategies, please help me :) |
Facebook: https://docs.feathersjs.com/cookbook/authentication/facebook.html |
|
Thanks @bartduisters I have managed to solve issues with Google and Facebook providers. In your Google cookbook example there are no getProfil method. I can send you my if you want to checkout |
|
The .getProfile() method is not necessary if all the information you want is the information used in the recipe. I think the issue can be closed since the OP has an answer + you have an answer. |
|
This seems to be working for me, but haven't fully tested yet (thanks)... now I just need to figure out how to add a custom Verifier for local.... In V3: |
|
There are no more verifiers in v4. Strategies are now customized by extending them as is documented in
|
|
Hi, |
|
@cupcakearmy See this: #1601 |
|
Hey @PowerMogli , try this one https://www.npmjs.com/package/@thesinding/authentication-api-key Cheers! |
|
In the Just curious. @daffl the docs here https://docs.feathersjs.com/api/authentication/strategy.html#parse-req-res aren't super clear on when |
|
Can probably be improved by pointing to the |
|
Yep! I just figured it out. It just needs to be added to the Thanks for the fast reply!! |


We are trying to migrate to v4. But now we are failing because we have no clue how to setup a custom auth (api-key) strategy. In v3 we registered our custom api-key strategy at passport like this:
Is there any documentation how to setup a custom (api-key) authentication strategy?