New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple AuthKey support #1

emrahcetiner opened this Issue Nov 22, 2017 · 3 comments


None yet
2 participants

emrahcetiner commented Nov 22, 2017

multiple AuthKey can be set. AuthKey should be array.


This comment has been minimized.


ignas-sakalauskas commented Nov 29, 2017

@emrahcetiner thanks for suggesting multiple AuthKey support, I will add it over the weekend.
If multiple keys are detected in the Authorization header, and at least one of them was not found in the AuthKey list, then the authentication will fail (strict approach). Is that OK?


This comment has been minimized.

emrahcetiner commented Nov 30, 2017

absolutely. this solution looks nice.


This comment has been minimized.


ignas-sakalauskas commented Dec 3, 2017

Multiple auth keys support is enabled now, just assign an array of strings to options AuthKey property. E.g.
options.AuthKey = new[] { "custom auth key", "custom auth key2" };
I've also updated my blog post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment