ddjerqq / ddjerqq/BlazorFormBuilder

Authentication and Authorization using JWT and refresh tokens.

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Make a minimum implementation of authentication and authorization.

Implement a login component using Blazor WASM. Use refresh tokens and JWT session tokens.

You can see the `Client/Services/ApiClient` service [here](https://github.com/ddjerqq/samoqalaqo/blob/master/src/Client/Services/ApiClient.cs)

I want you to make the login endpoint accept any username and any password. I will nee an AuthStatus component that:
When authenticated, will display the user's entered name and a button to sign out.
When not authenticated, display a button to login.

Allow anonymous users to access the index page, but make everything else require an authorized user.

Use JWT tokens, and arbitrary refresh tokens.

I think making a user table and registration is out of the scope of this demo, but you could make the JWT protection using a RSA private key.

> bonus points if you use [ECDSA](https://www.scottbrady.io/c-sharp/jwt-signing-using-ecdsa-in-dotnet-core) instead of RSA

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.