JumpstartO.Blazor.Templates
1.0.2
dotnet new install JumpstartO.Blazor.Templates@1.0.2
JumpstarO.Blazor.Templates
Getting started
Install the Templates
dotnet new install JumpstartO.Blazor.Templates::1.0.0
Auth0.Blazor.net10
dotnet new jumpstarto-auth0 -o YourProject
You will also need to adjust the Appsettins.json in the .Api and the .Web Projects.
Also you should configure your Auth0 the following way:
- YourProject
- Regular Web Application
- Application URIs (in the Settings-Tab)
- Allowed Callback URLs: https://localhost:7255/callback
- Allowed Logout URLs: https://localhost:7255/
- APIs: Add your API
- YourProject.Api
- Custom Api
- Api Audience something like: "https://api.YourProject"
- RBAC Settings:
- Enabled
- Add Permissions to Accesstoken
- Permissions:
- added read:weather as an example
- Usermanagement
- I added the Role <YourProject>.User
- Actions
- apply userrole to user
- Trigger: Login/Post-Login
exports.onExecutePostLogin = async (event, api) => {
const roleClaim = 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role';
if (event.authorization) {
api.idToken.setCustomClaim(roleClaim, event.authorization.roles);
}
};
- populate /userinfo endpoint with additional info
- Trigger: Login / Post Login
exports.onExecutePostLogin = async (event, api) => {
api.idToken.setCustomClaim(`nickname`, event.user.nickname);
api.idToken.setCustomClaim(`phone_number`, event.user.phone_number);
api.idToken.setCustomClaim(`created_at`, event.user.created_at);
};
Photino.Blazor.net10
dotnet new jumpstarto-photino -o YourProject
Quickstart for Blazor // Photino // EF-Core // MudBlazor Dev. Comes with a full MudBlazor UI, a Home Page, a Add-WeatherForecast Page and a View-WeatherForecasts Page.
dotnet ef migrations add Initial
dotnet ef database update
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.