yubinTW / fastify-keycloak-adapter

a Fastify plugin for Keycloak
MIT License
19 stars 5 forks source link

Add support for optional authorization #51

Open dwelch2344 opened 2 months ago

dwelch2344 commented 2 months ago

Great work on this adapter! I'm just playing around with it now and it works great out of the box, but I find myself wanting to conditionally identify a principal if there's an authorization header, otherwise still allow the request to run.

It's been a while since I've worked with fp-ts so figured I'd ask if this is something you'd be willing to support, if contributed. Thoughts?

yubinTW commented 2 months ago

Sure, feel free to send the PR

ArnaudTA commented 2 months ago

@dwelch2344 look at #52 my problem was pretty similar and I hope you'll be able to use this option