Skip to content

Commit 254c91b

Browse files
committed
2 parents f7cdb0b + 52988cd commit 254c91b

2 files changed

Lines changed: 31 additions & 2 deletions

File tree

.github/workflows/dotnet-core.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 3.1.101
20+
- name: Install dependencies
21+
run: dotnet restore
22+
- name: Build
23+
run: dotnet build --configuration Release --no-restore
24+
- name: Test
25+
run: dotnet test --no-restore --verbosity normal

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
21
<img src="https://repository-images.githubusercontent.com/268701472/8bf84980-a6ce-11ea-83da-e2133c5a3a7a" alt=".NET DevPack" width="300px" />
32

43
What is the .NET DevPack.Identity?
54
=====================
65
.NET DevPack Identity is a set of common implementations to help you implementing ASP.NET Identity, JWT, claims validation and another facilities
76

7+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/f1bd42eda59844ea95852606741147fa)](https://www.codacy.com/gh/NetDevPack/NetDevPack.Identity?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=NetDevPack/NetDevPack.Identity&amp;utm_campaign=Badge_Grade)
88
[![Build status](https://ci.appveyor.com/api/projects/status/e283g9ik4rk3ymsp?svg=true)](https://ci.appveyor.com/project/EduardoPires/netdevpack-identity)
9+
![.NET Core](https://github.com/NetDevPack/NetDevPack.Identity/workflows/.NET%20Core/badge.svg)
10+
[![License](http://img.shields.io/github/license/NetDevPack/NetDevPack.Identity.svg)](LICENSE)
911

1012
## Give a Star! :star:
1113
If you liked the project or if NetDevPack helped you, please give a star ;)
@@ -160,9 +162,11 @@ return new JwtBuilder()
160162
.WithJwtClaims()
161163
.WithUserClaims()
162164
.WithUserRoles()
163-
.BuildUserResponse();
165+
.BuildUserResponse() as UserResponse;
164166
```
165167

168+
>**Note:** The safe cast to `UserResponse` is needed because is a subtype of `UserResponse<TKey>`.
169+
166170
## Examples
167171
Use the [sample application](https://github.com/NetDevPack/NetDevPack.Identity/tree/master/src/Samples/AspNetCore.Jwt.Sample) to understand how NetDevPack.Identity can be implemented and help you to decrease the complexity of your application and development time.
168172

0 commit comments

Comments
 (0)