Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@shankarmorwal/webauth-client
Advanced tools
Implementation of strong authentication with the webauthn standard and FIDO2. Strong authentication is an authentication method using a physical key.
Implementation of strong authentication with the webauthn standard and FIDO2. Strong authentication is an authentication method using a physical key.
For a more thorough introduction see these two nice articles:
npm install @shankarmorwal/webauth-client
npm install @shankarmorwal/webauth-server
Webauthn
is composed of two parts @shankarmorwal/webauth-client
and @shankarmorwal/webauth-server
import {
solveRegistrationChallenge,
solveLoginChallenge
} from '@shankarmorwal/webauth-client';
solveRegistrationChallenge
:
convert the challenge returned by the server on the register route into the response to be returnedsolveLoginChallenge
:
convert the challenge returned by the server on the login route into the response to be returnedSee an example in example/front
import {
parseRegisterRequest,
generateRegistrationChallenge,
parseLoginRequest,
generateLoginChallenge,
verifyAuthenticatorAssertion,
} from '@shankarmorwal/webauth-server';
parseRegisterRequest
:
Extract challenge and key from the register request body. The challenge allow to retrieve the user, and the key must be stored server side linked to the user.generateRegistrationChallenge
:
Generate a challenge from a relying party and a user { relyingParty, user }
to be sent back to the client, in order to registerparseLoginRequest
:
Extract challenge and KeyId from the login request.generateLoginChallenge
:
Generate challengeResponse from the key sent by the client during login. challengeResponse.challenge should be stored serverside linked to the corresponding userverifyAuthenticatorAssertion
:
Take the loginChallenge request body and the key stored with the user, and return true if it passes the authenticator assertionSee an example in example/server
For now only fido-u2f and packed format are implemented
FAQs
Implementation of strong authentication with the webauthn standard and FIDO2. Strong authentication is an authentication method using a physical key.
We found that @shankarmorwal/webauth-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.