Skip to content

Sample Credential Provider - Use LINE Notify to Receive Code and Unlock PC

Notifications You must be signed in to change notification settings

der3318/line-win-credprov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🪟 LINE Notify Windows Credential Provider

platform flavor size license

Demonstrate the usage of Windows credential provider, built on top of official V2 Credential Provider Sample. The repo extends the functionality, allowing a user to unlock a PC with a code sent via LINE Notify.

SampleUsage.png

💻 Deployment & Setup

First of all, create a LINE chatroom and associate it with a valid notify bearer. Then, download the sample DLL and put it under System32 directory.

SampleDeploy.png

Also download the registry file and double click to import module settings. This will add entries under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers and HKCR\CLSID\{5fd3d285-0dd9-4362-8855-e0abaacd4af6} to hint Windows to load the sample provider.

Open Registry Editor and navigate to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{5fd3d285-0dd9-4362-8855-e0abaacd4af6}. Insert these REG_SZ key-value pairs based on your own information:

Name Data
UserName Account name. Let provider know which user the tile belongs to.
Password Password to use, in plain text.
LineBearer The LINE Notify bearer acquired in the first step.

SampleRegister.png

Unlock the device. Now a new interactable credential tile should show up in logon screen. If not, make sure Microsoft Visual C++ Redistributable 2022 is properly installed on the machine.

🧹 Cleanup & Uninstall

Get the Unregister.reg. Double click to remove the registry records. Delete the deployed SampleV2CredentialProvider DLL from System32 folder.

🔨 Compilation & Build

Open the solution file with Visual Studio 2022. Press CTRL+B to build the vcxproj and find the compiled binary in x64 directory.

About

Sample Credential Provider - Use LINE Notify to Receive Code and Unlock PC

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published