Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.15k stars 93 forks source link

Bearer auth parser #95

Closed prince-chrismc closed 4 years ago

prince-chrismc commented 4 years ago

Totally got myself backwards with too many RFCs open

Unfortunately I followed RFC 6749 instead of my intended RFC 6750 which are not the same "authorization request header" scheme.

I'll open a PR with the fix shortly. I apologize for the inconvenience.

eao197 commented 4 years ago

Thanks for your fix.

It'll be a part of the upcoming v.0.6.8.

I've added a few more overloads for try_extract_params functions in http_field_parsers::basic_auth and http_field_parsers::bearer_auth namespaces.

There is also a new helper try_parse_field.

If there won't be any new fixes or new ideas I'll release v.0.6.8 tomorrow morning.

prince-chrismc commented 4 years ago

Nothing further on my end, I am very happy with RESTinio :smile:

eao197 commented 4 years ago

I am very happy with RESTinio

I'm glad to hear this!

eao197 commented 4 years ago

Fixed in v.0.6.8.