Skip to content
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

std::string Pistache::Http::Header::Authorization::getBearerToken() . Where art thou? #1257

Open
mowijo opened this issue Oct 24, 2024 · 6 comments

Comments

@mowijo
Copy link

mowijo commented Oct 24, 2024

I feel std::string Pistache::Http::Header::Authorization::getBearerToken() is missing while its siblings

  • std::string Pistache::Http::Header::Authorization::getBasicUser()
  • std::string Pistache::Http::Header::Authorization::getBasicPassword()

exist.

Is there a design reason for lack of that method or has it just not been implemented yet? It it is the latter, I shall get on with it immediately.

@kiplingw
Copy link
Member

kiplingw commented Oct 24, 2024

The latter. I implemented basic authorization a long time ago in #725. Don't forget to add a unit test.

@mowijo
Copy link
Author

mowijo commented Oct 24, 2024

🥳

@mowijo
Copy link
Author

mowijo commented Oct 24, 2024

The latter. I implemented basic authorization a long time ago in #725.

But it wasn't merged. How comes? Never mind. I apparently failed reading comprehension in school

@dgreatwood
Copy link
Contributor

Hi @mowijo -

Just to confirm what I think you already understood - #725 implemented BasicUser/BasicPassword, and that support was merged.

If you would like to propose a PR related to bearer token use, then that sounds good to me and I'm sure we'd be happy to take a look.

Existing mentions of bearer in the code base you can see here:
https://github.com/search?q=repo%3Apistacheio%2Fpistache%20bearer&type=code

Thanks.

@winkler-pixop
Copy link

I got it , thank you, and I am on it!

Thanks, Morten

@mowijo
Copy link
Author

mowijo commented Oct 27, 2024

There is a PR for that now: #1258

Please let me know what you think about that.

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

No branches or pull requests

4 participants