Add FIDO2 authentication using P/Invoke#606
Open
johannesconsulting wants to merge 3 commits intopspete:devfrom
Open
Add FIDO2 authentication using P/Invoke#606johannesconsulting wants to merge 3 commits intopspete:devfrom
johannesconsulting wants to merge 3 commits intopspete:devfrom
Conversation
- Implemented Invoke-FIDO2Authentication function for FIDO2 authentication flow. - Added ConvertFrom-Base64UrlString function for Base64Url decoding. - Created tests for New-PASSession and ConvertFrom-Base64UrlString. - Updated documentation for New-PASSession to include new parameters. - Added DSInternals.Win32.WebAuthn.dll and its license.
- Remove duplicated Base64Url encoding via a small helper scriptblock - Consolidate LogonRequest passthrough params into a single hashtable - Drop redundant try/catch wrappers that only re-prefix error messages - Remove unused SuppressMessage attribute and obvious step-by-step comments - Use ContainsKey() and tidy whitespace
…hn.dll - Drop third-party DLL (and its license file); use the Windows built-in webauthn.dll via P/Invoke through Add-Type inline C#. - Remove unused $Script:ModuleRoot from psPAS.psm1 (only needed for the DLL path lookup). - Manually marshal client data / credential list / assertion structs, and free all allocations + WebAuthNFreeAssertion in a finally block. - Use the credential ID actually returned by the authenticator (assertion.Credential.pbId) rather than �llowCredentials[0].Id.
1125d61 to
fc13d85
Compare
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This was created with the help of AI
This is the same type of change as #596 but instead of using a DLL file from DSInternals, we do it our self.
I will keep both PRs up and you can decide if you want any of them or none :)
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: