-
Notifications
You must be signed in to change notification settings - Fork 11
Basic C# .NET Client code example for this? #8
Comments
Hi, we haven't tried this with .NET so far, but it'd be good to get working. From the error message it seems like the token you are getting isn't a SPNEGO token, maybe there is some flag you can set to ask for one? |
Yeh I don't think my current method can request different types of tokens. I'm tried using As a related tangent: Is there any reason why this plugin doesn't accept the Negotiate token as a HTTP header - as then the built in .NET |
Yes, it's due to how vault runs the plugin, that mechanism didn't have a way to pass through headers when I wrote this originally. It looks like https://github.com/hashicorp/vault/pull/4172/files added that functionality though. Maybe adding support for that would be the easier path? Should be pretty straightforward, allow the |
Interesting - yes, that would definitely bring it's usage more inline with standard practice. The .NET |
See hashicorp/vault#3005 for a bit more discussion on that. Not sure if sending that specific response works yet. |
Interesting thread, would be great to have a standardised Kerberos auth method in Vault- but I can’t see anything in there preventing HTTP Headers being read and a 401 challenge being returned on the initial request (provided the necessary request headers offering auth are present). |
From reviewing the code it seems like perhaps the only thing we can't do currently is respond with a I wonder if this custom response headers feature could be added? |
Sorry - getting up to speed on this now. As noted, the custom headers in the response is the big thing here - as per the PR you previously referred to. I guess it's a bigger job if auditing and black/whitelisting on a per header basis is necessary. |
Yes, that sounds about right. Will be interesting to see what the response in hashicorp/vault#3005 will be. |
…ldap Use the Vault ldaputil SDK
Apologies if this isn't the correct place for this type of question but has anyone got this working with a .NET/C# client?
I can't for the life of me get it to work, my local user has permissions via kerberos and works with the README python code:
The text was updated successfully, but these errors were encountered: