3.0.10
版本发布时间: 2020-02-28 11:25:19
Cysharp/MagicOnion最新发布版本:6.1.4(2024-07-17 15:51:31)
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
1、 MagicOnion.Client.Unity.unitypackage 149.9KB
2、 moc.zip 65.02MB