Code Monkey home page Code Monkey logo

Comments (2)

DSBloom avatar DSBloom commented on September 28, 2024

So I've switched gears a little bit here, and am going to wrap the Windows password provider.

I have so far successfully translated this sample https://github.com/pauldotknopf/WindowsSDK7-Samples/tree/master/security/credentialproviders/samplewrapexistingcredentialprovider to your C# code, but I am kind of confused on how I would wrap the ICredentialProviderCredential object.

In the C++ example, there is an initialize method that takes in a 'ICredentialProviderCredential', and then they assign it to their local object like so: _pWrappedCredential = pWrappedCredential.

I don't see an initialize method in your TestWindowsCredentialProviderTile.cs class, or even in the 'ICredentialProviderCredential' interface here https://docs.microsoft.com/en-us/windows/desktop/api/credentialprovider/nn-credentialprovider-icredentialprovidercredential.

How can I get a reference to the password provider's ICredentialProviderCredential and call it from my wrapped credential?

from windows-credentials-provider.

phaetto avatar phaetto commented on September 28, 2024

Hi @nadcraker,

IMHO you shouldn't wrap the default credential provider. Unless it's a fun project it could limit you from different OS customisations that you might have to do.

Right now I am pretty sure that the CPUS_UNLOCK_WORKSTATION scenario is not supported.
The problem is the method CredPackAuthenticationBuffer which creates a KERB_INTERACTIVE_UNLOCK_LOGON structure (internally) with MessageType always KerbInteractiveLogon.

The proper C++ implementation in pgina looks like this.

I hope that helps,
Alexander

from windows-credentials-provider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.