Skip to main content

Authentication

Wisej.NET 4.2.0+

Wisej.NET 4.2.0 adds two components that sign users in without the application storing a password. Both are non-visual components: you drop them on a page or form in the designer, where they appear in the component tray, or create them in code. Both verify everything the browser sends back on the server, and both publish the signed-in user as a claims identity the rest of the application can read.

OAuthClientPasskey
Who vouches for the userAn identity provider: Google, GitHub, Microsoft Entra ID, GitLab, or any OAuth 2.0 / OpenID Connect serverThe user's own device: a platform authenticator (Windows Hello, Touch ID, Android) or a security key
What the application storesNothing, unless it keeps its own user recordsThe public key of each passkey, in an IPasskeyCredentialStore you implement
What you register beforehandAn application (client id, secret, redirect URI) with each providerNothing outside the application
Access to other APIsYes: an access token for the provider's APIs (Microsoft Graph, Google APIs, GitHub)No: it proves who the user is, nothing more
The signed-in userOAuthIdentity on Application.UserPasskeyIdentity on the component, and on Application.User when the application allows it

The two work together. A common arrangement is to sign new users in with an OAuthClient or with the application's existing login, then offer to add a passkey from their account page so the next sign-in takes a fingerprint instead of a password.

In This Section​

  • OAuthClient: the sign-in flow, events, tokens, sign-out, secrets and errors.
  • OAuth Providers: what to register with Google, GitHub, Microsoft Entra ID, GitLab or a custom provider, and how to configure the component for each.
  • Passkey: registering passkeys, signing in with them, managing them, and the settings a production deployment needs.
  • Passkey Credential Store: implementing the store the Passkey component keeps credentials in, with a complete SQL Server sample.
note

Authentication answers who the user is. What that user may do is still your application's decision: check the identity before you show a page, and on the server before you act on a request. See Security.