-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT Support #1
base: main
Are you sure you want to change the base?
JWT Support #1
Conversation
[Edit(Roles.Admin)] | ||
[Create(SecurityPermissionLevels.DenyAll)] | ||
[Delete(SecurityPermissionLevels.DenyAll)] | ||
public class AppUser: IdentityUser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question for Andrew: Does the information on Identity User get exposed to the client via coalesce? (e.g. the password hash?)
Is this the best way to hide it?
[InternalUse]
public override string? PasswordHash { get; set; }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The answer lies in the generated DTOs, and it is "yes".
And yes.
Is the exact goal here to add JWT bearer tokens as the authentication scheme? This could be substantially simpler if opaque bearer tokens or cookies are suitable. https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity-api-authorization. You could delete the controller, and most of the configuration in Program.cs In terms of presenting this in the format of the show, I think this is 3 episodes?
|
Don't merge this, just for diffs and comments