SaaSCore.Auth
0.5.0-preview.8
dotnet add package SaaSCore.Auth --version 0.5.0-preview.8
NuGet\Install-Package SaaSCore.Auth -Version 0.5.0-preview.8
<PackageReference Include="SaaSCore.Auth" Version="0.5.0-preview.8" />
<PackageVersion Include="SaaSCore.Auth" Version="0.5.0-preview.8" />
<PackageReference Include="SaaSCore.Auth" />
paket add SaaSCore.Auth --version 0.5.0-preview.8
#r "nuget: SaaSCore.Auth, 0.5.0-preview.8"
#:package SaaSCore.Auth@0.5.0-preview.8
#addin nuget:?package=SaaSCore.Auth&version=0.5.0-preview.8&prerelease
#tool nuget:?package=SaaSCore.Auth&version=0.5.0-preview.8&prerelease
SaaSCore.Auth
Authentication services for SaaSCore.NET applications.
What It Provides
- Google OAuth and token validation support.
- SaaSCore user identity contracts and endpoint contributors.
- Authentication module integration for SaaSCore APIs.
- CSRF protection for SaaSCore cookie-auth sessions.
Usage
Reference this package from an API project that uses SaaSCore authentication and enable the auth module through your application startup and saascore.json configuration.
When cookie sessions are enabled, SaaSCore emits an HttpOnly auth cookie and validates a CSRF token on unsafe requests that include that cookie. Browser clients can fetch a token from /auth/csrf and send it on state-changing requests with the X-SaaSCore-CSRF header. The @saascoredotnet/auth-react cookie client handles that exchange by default.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Authentication.Google (>= 8.0.24)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.24)
- Microsoft.IdentityModel.Protocols (>= 8.18.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 8.18.0)
- Microsoft.IdentityModel.Tokens (>= 8.18.0)
- SaaSCore.Abstractions (>= 0.5.0-preview.8)
- SaaSCore.Notifications (>= 0.5.0-preview.8)
- SaaSCore.Persistence (>= 0.5.0-preview.8)
- System.IdentityModel.Tokens.Jwt (>= 8.18.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SaaSCore.Auth:
| Package | Downloads |
|---|---|
|
SaaSCore
Core services for SaaSCore.NET™ backends. |
|
|
SaaSCore.Admin.Users
Package Description |
|
|
SaaSCore.Admin.Auth
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0-preview.8 | 0 | 5/16/2026 |
| 0.5.0-preview.7 | 0 | 5/16/2026 |
| 0.5.0-preview.6 | 5 | 5/15/2026 |
| 0.5.0-preview.4 | 51 | 5/14/2026 |
| 0.5.0-preview.3 | 45 | 5/14/2026 |