GithubHelp home page GithubHelp logo

cauca-9-1-1 / cause-security-management Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 395 KB

Add basic JWT authentication to an Asp.Net core project.

License: MIT License

C# 100.00%
asp-net-core aspnetcore authentication jwt-token

cause-security-management's People

Contributors

alexislavertucauca avatar caucacg avatar iamkinetic avatar jeepsboucher avatar josbleuet avatar mickjol avatar philipperobertgh avatar yjacques940 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

iamkinetic

cause-security-management's Issues

Allow user to integrate the security tables in their own context

Is your feature request related to a problem? Please describe.
User can't use their own context, they have to use the built in one.

Describe the solution you'd like
Allow user to user their own context if that's what they'd like.

  • This could be done using ISecurityContext or the abstract BaseSecurityContext.

L'enregistrement d'un objet avec une nouvelle relation ne fonctionne pas

Describe the bug
Sur le SaveChanges, j'ai l'erreur database operation expected to affect 1 row(s) but actually affected 0 row(s)

To Reproduce
Steps to reproduce the behavior:

  1. Dans le CustomerPortal, dans l'environnement de Test, appeler le OnCallPeriodGeneric avec l'object suivant :
    {
    "id":"b49623e1-1fba-4720-aa2f-9d2ee9d24f63",
    "startsOn":"2019-12-11T12:00:00.000Z",
    "endsOn":"2019-12-11T22:00:00.000Z",
    "teamId":"10-12 A",
    "firemen":[
    {
    "firemanId":"64c95efc-3dfe-4f96-bfc0-243685ed3983",
    "startsOn":"2019-12-11T12:00:00.000Z",
    "endsOn":"2019-12-11T22:00:00.000Z"

     }, {
     	"firemanId":"b7cddd4f-4ad7-40a5-babe-06efea402044"
     	,"startsOn":"2019-12-11T12:00:00.000Z",
     	"endsOn":"2019-12-11T22:00:00.000Z"
     	
     }]
    

}

Expected behavior
Le SaveChanges ne devrait pas générer une erreur

Allow user to request a new validation code

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Error of validation when removing members of a group

Describe the bug
In group management, when we add a group and remove users from the group, we have an error. After this, we always have a 500 from the server.

To Reproduce
Steps to reproduce the behavior:

  1. Go to customer portal/management/groups
  2. Click on + to add a group
  3. Add a group
  4. Edit the group, remove all the members of the group and save
  5. Refresh the page (F5) and edit again the group
  6. Remove only one member (what should be valid) and save again
  7. We got the error

Expected behavior
We should remove members when there is more than one and not have the page crash when returning a 500.

Desktop (please complete the following information):
Seen on customer portal and survi-prevention web applications

Use the moduleId of the current project

In updating permissions (Add a new permission, remove, etc.), we need to get the moduleId for the right project. We actually have an hardcoded id, so just need to get the tag of the app and get his moduleId

Migration doesn't work with the SecurityContext.

Is your feature request related to a problem? Please describe.
Migration doesn't work with the SecurityContext.

Describe the solution you'd like
Add a SecurityContextFactory so we can use migration.

Replace AuthenfiedController by a mockable service

Is your feature request related to a problem? Please describe.
We currently use AuthentifiedController when we want to get the current user from the HttpContext.

Describe the solution you'd like
We should use a mockable service to facilitate unit testing. Something like ICurrentSessionService.

Describe alternatives you've considered
We can currently fake the HttpContext.

Make configuration's injection cleaner

Describe the bug
Some of the configuration used by the library is weirdly injected and this needs to be fixed. Let's use Options<T> instead of directly using IConfiguration, which is not a good practice.

This will be a breaking change, but it will make things cleaner.

Send email when user change email

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Upgrade to .Net 7

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Support for .Net 5

Is your feature request related to a problem? Please describe.
We need to start working on the .Net Core 5 version of this library.

Be able to override BaseGroupManagementController class members

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

CurrentUser should not be attached to context

Describe the bug
Cannot update current user because it is already attached to context

To Reproduce
Steps to reproduce the behavior:

  1. Modify the currentUser
  2. UpdateUser
  3. See error

Expected behavior
Save current user must be modify

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.