-
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
Feature/msal #245
base: develop
Are you sure you want to change the base?
Feature/msal #245
Conversation
Loos good as a first step. Would like to see the commented out code just be removed. This is what git is for. |
@@ -158,7 +156,7 @@ export class AdminOverviewComponent implements OnInit, AfterViewInit { | |||
}); | |||
dialogRef.afterClosed().subscribe((isConfirmed: boolean) => { | |||
if (isConfirmed) { | |||
this.authService.requestPasswordReset(row.userId); | |||
// this.authService.requestPasswordReset(row.userId); |
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.
Should be removed
@@ -180,7 +178,7 @@ export class LegalguardianOverviewComponent implements OnInit, AfterViewInit { | |||
}); | |||
dialogRef.afterClosed().subscribe((isConfirmed: boolean) => { | |||
if (isConfirmed) { | |||
this.authService.requestPasswordReset(row.userId); | |||
// this.authService.requestPasswordReset(row.userId); |
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.
Should be removed?
// this.authService.isAdmin$.subscribe((res) => { | ||
// this.isAdmin = res; | ||
// this.updateRequirements(); | ||
// }); | ||
// this.authService.isAuthenticated$.subscribe((res) => { | ||
// this.isAuthenticated = res; | ||
// this.updateRequirements(); | ||
// }); |
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.
Should be removed?
@@ -15,7 +15,7 @@ const routes: Routes = [ | |||
{ | |||
path: 'admin', | |||
component: MainComponent, | |||
canActivate: [AuthGuard], | |||
canActivate: [], |
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.
Maybe add a todo to make sure we add a substitute here?
b2cPolicyNames: IB2CPolicyNames; | ||
} | ||
|
||
export const endpoint = 'https://localhost:5001/'; |
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.
This ain't gonna work :|
.../app/modules/dashboard/components/registration-overview/registration-overview.component.html
Show resolved
Hide resolved
@@ -30,15 +35,15 @@ | |||
</mat-select> | |||
</mat-form-field> | |||
</div> | |||
<div *ngIf="authService.isAdmin$ | async" class="careuser-filter"> |
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 authService.isAdmin$
condition should be left in place here
// TODO Reintroduce | ||
//await Seed.SeedRolesAsync(serviceScope); | ||
//await Seed.SeedUsersAsync(serviceScope, applicationDbContext, initialAdminPassword); | ||
//await Seed.CheckRolesAsync(serviceScope, applicationDbContext); | ||
//Seed.CreateAPIAndClient(configrationDbContext); | ||
//Seed.SeedIdentityResources(configrationDbContext); |
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.
I think this can be removed. Our application shouldn't have to worry about seeding roles or users anymore. We just need to put the expected roles on the controllers
Singer.API/Program.cs
Outdated
|
||
|
||
app.UseCors(builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod()); | ||
//app.UseIdentityServer(); |
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.
kill it with fire!
@@ -23,8 +20,8 @@ namespace Singer.Services; | |||
|
|||
public class AdminUserService : UserService<AdminUser, AdminUserDTO, CreateAdminUserDTO, UpdateAdminUserDTO>, IAdminUserService |
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.
I think this whole service can be removed?
Singer.API/Services/UserService.cs
Outdated
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.
Tests/TestData/BaseTest.cs
Outdated
@@ -27,6 +27,6 @@ public virtual void Setup() | |||
[TearDown] | |||
public virtual void TearDown() | |||
{ | |||
TestDataContext.Dispose(); | |||
//TestDataContext.Dispose(); |
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.
Do we need it?
Switch to MS Azure AD B2C
This is a very large PR.
Focus points
Additionals: