Skip to content

Commit

Permalink
Update README, enable publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCampionJr committed Oct 28, 2020
1 parent f83f5bf commit 8b542a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
run: dotnet test --logger trx --results-directory ${{env.BUILD_ARTIFACT_PATH}}/test-results
- name: Pack
run: dotnet pack -c Release --no-build --include-symbols /p:SymbolPackageFormat=snupkg /p:Version=${{ steps.getversion.outputs.build-version }} /p:PackageOutputPath=${{env.BUILD_ARTIFACT_PATH}}/packages
- name: Publish to GitHub Packages
run: dotnet nuget push ${{env.BUILD_ARTIFACT_PATH}}/packages/*.nupkg -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
# - name: Publish to GitHub Packages
# run: dotnet nuget push ${{env.BUILD_ARTIFACT_PATH}}/packages/*.nupkg -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate

- name: Publish artifacts
if: ${{ always() }}
Expand Down
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,26 @@
.Net Core Identity providers for [MongoFramework](https://github.com/TurnerSoftware/MongoFramework).

## Features
- .NET Core 2.1
MongoFramework Implementations
- IdentityUser
- IdentityRole
- RoleStore
- UserStore
- UserOnlyStore

## To-Do
ServiceCollection Extensions for
- MongoDbContext
````cs
services.AddMongoDbContext<MongoDbContext>(o =>
o.ConnectionString = Configuration.GetConnectionString("DefaultConnection"));
````

### References
- Identity Stores
````cs
services.AddDefaultIdentity<MongoIdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
.AddMongoFrameworkStores<MongoDbContext>();
````

### Thanks
Sample .NET Core Project

Unit Tests, including passing Asp.Net Core's IdentitySpecificationBase

0 comments on commit 8b542a2

Please sign in to comment.