This is the backend for AuthDemo project written in C#. This is a project for study and reference.
You can find the frontend project here: authdemo-frontend
AuthDemo implements the following authentication methods:
- OpenID Connect 1.0 & OAuth2
- Passkey (WebAuthn, Resident key mode)
- Sign in with Ethereum (ERC-4361)
To be note that the following features have not been implemented in backend:
- All refresh token related logics, including API for refreshing tokens, token storage, rotation, expiration, etc.
- Use a real distributed cache for challenge, session, token, etc. In real production, you should use a distributed cache like Redis can persist data.
This project is licensed under MIT License, read LICENSE for more detail.