github Cysharp/MagicOnion 3.0.10

latest releases: 7.0.2, 6.1.7, 7.0.1...
4 years ago

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

Don't miss a new MagicOnion release

NewReleases is sending notifications on new releases.