Skip to content

3.0.10

Compare
Choose a tag to compare
@neuecc neuecc released this 28 Feb 03:25
f790a2a

Changes

Improvements and fixes

  • #279 Bump MessagePack from 2.1.80 to 2.1.90

New features

#274 MagicOnion.Server.Authentication (Preview)

MagicOnion.Server.Authentication package provides a simple authentication mechanism on MagicOnion. Currently, the package is marked as preview.

$ dotnet add package -v 3.0.10-preview MagicOnion.Server.Authentication

MagicOnion.Server.Authentication provides two API surfaces.

  • Fundamental attributes (e.g. AuthorizeAttribute, AllowAnonymousAttribute)
  • JWT-based authentication implementation framework

To use the framework, 3rd-party developers can implement JWT-based authentication with minimal effort. The developers just implement below interfaces.

  • MagicOnion.Server.Authentication.Jwt.IJwtAuthenticationProvider
  • System.Security.Principal.IIdentity
  • Application-specific JWT payload

Sample code: https://github.com/Cysharp/MagicOnion/tree/master/samples/JwtAuthentication