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.
| OAuthClient | Passkey | |
|---|---|---|
| Who vouches for the user | An identity provider: Google, GitHub, Microsoft Entra ID, GitLab, or any OAuth 2.0 / OpenID Connect server | The user's own device: a platform authenticator (Windows Hello, Touch ID, Android) or a security key |
| What the application stores | Nothing, unless it keeps its own user records | The public key of each passkey, in an IPasskeyCredentialStore you implement |
| What you register beforehand | An application (client id, secret, redirect URI) with each provider | Nothing outside the application |
| Access to other APIs | Yes: 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 user | OAuthIdentity on Application.User | PasskeyIdentity 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
Passkeycomponent keeps credentials in, with a complete SQL Server sample.
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.