Yubico / Yubico.NET.SDK

A YubiKey SDK for .NET developers
Apache License 2.0
99 stars 47 forks source link

C++ binding needed for Windows and Linux #23

Closed patlecat closed 2 years ago

patlecat commented 2 years ago

C++ binding needed for Windows and Linux, basically :)

GregDomzalski commented 2 years ago

Hi @patlecat,

What applications of the YubiKey are you interested in using?

Are you aware of our C-based libraries? These would probably be your quickest path forward to working with the YubiKey in C++:

patlecat commented 1 year ago

@GregDomzalski C binding is fine but a true C++ binding adds a lot of additional convenience and security to it. Besides I have to admit that your documentation is at best confusing and I can't find certain concepts well explained nor do I see a good overview what each lib (you listed above) does.

I was trying for example to use the OTP service via your cloud service but I can't find how to process the token from the YubiKey in a way to confirm that the answer from the cloud service is valid or not. Things like that.

GregDomzalski commented 1 year ago

I understand. We're always trying to improve our documentation, so feedback is welcome. We are trying to consolidate our documentation on docs.yubico.com, but this has been a slow process.

I believe the best document for our OTP service is this one: https://developers.yubico.com/OTP/Specifications/OTP_validation_protocol.html

You should no longer need a dedicated library for this as it is simply one HTTP request to validate. If you're interested in a "pass/fail" response to the validation - the "status" field is what you are looking for.

patlecat commented 1 year ago

@GregDomzalski I see, but I am trying to process the input from the YubiKey to send to your OTP service. Sending and receiving is simple indeed. But it seems that I need to process the string that comes out of the YubiKey once I press the key because your server doesn't accept it as-is. And I can't find a useful documentation for it anywhere.

Could you help with it please?