continuation
Hello Ahmad, when will you continue on this course?
Hi dear, I have already recorded many videos but didn't publish them yet because just waiting to finish my vacation so I continue publishing videos on daily bases, Starting from the new year you will see videos everyday and I will do my best to finish it in January and February Thanks for you interest
Hi Ahmad. This is a fantastic course. Much appreciated. Please continue.
Hi dear Actually this course is still ongoing but the I found the number of viewers too less that expected but it seems there are people who are still interested like you, I will make sure to get back to you starting from this week thank you so much
Dear Ahmad,
Thank you so much.
This course is probably the most comprehensive course I have seen.
Many courses say that they will create a real world application but do not. Your course does. And your code works which sometimes isn’t the case with other courses and articles. You provide such detailed instructions. Thank you.
Your course will teach me about all the important technologies that I need to know to be an Azure cloud software developer. This is my dream. Thank you.
After seeing this support I will make sure to continue working on it starting from tomorrow, stay tuned for all the new videos
Thanks for that support this is what I was waiting for, I tough no one is interested
For a long time now I read all the documents that I could find and I still didn’t get it. But your course brings it all together in a real world app: Blazor Wasm, SQL, CRUD, Authentication, Roles - there is nothing more I need to know for most applications.
I’m sorry I didn’t say this sooner to encourage you. Keep going. You’re doing a great job.
Great work!
I should have completed all 36 videos by this evening.
I'm excited to see what's coming next. Hopefully, more videos and code to get me through the weekend :-)
Hi Thanks for reminding Two videos are under cooking they will be available today
Thanks
Awesome. Thank you.
The first video has been posted and stay tuned for others, thanks for your support
Thanks Ahmad. I look forward to watching.
Hi Ahmad,
Thank you for continuing the course.
I had a productive weekend - I am now all up-to-date 👍
I look forward to seeing what's coming next, in particular, how you're going to integrate with Azure SignalR.
Thanks again.
Regards
Thank you for that update The upcoming video will start with the events service to create an event and upload images and so on for the business owner, The integration with SignalR will be implemented after building the events and tickets service.
Stay tuned for the videos of this week
Thank You
Staying tuned.
What’s cooking for this weekend 😀
About 6 videos are getting ready to be published tomorrow and on Saturday
Thanks for you patience
Amazing. Thanks.
Hi Ahmad,
I was thinking about how to automatically add the Azure AD B2C user to the local database table when the user completes the signup user flow.
I discovered this arcticle / code:
https://wellsb.com/csharp/aspnet/azure-ad-b2c-onticketreceived-newuser-claim/
Do you think that this would work with the TicketsBasket code that you have created as part of this training course?
I'd be interested to hear your comments / views on this.
Thanks.
Actually that is something required, we have to do this but waiting to switch to the client-side part to figure out the best way to do it, sorry for not publishing videos this weekend but I was up to the new course there PlannerApp V2.0
There is some recorded videos for TicketsBasket that needs to be edited and uploaded
Thank you for sharing
No problem.
PlannerApp looks great too.
Hi Ahmad,
I have successfully followed your video and implemented the CustomIdentityMiddleware.
I decided to add CustomIdentityMiddleware to another Blazor WebAssembly Hosted app that I have started to build - again, following your video instructions step-by-step.
Unfortunately, this time the CustomIdentityMiddleware is not reached, and, therefore the Role doesn't get added to the Claim.
I just can't seem to work out what I did wrong the second time around. Can you offer any suggestions or gotchas that you may have encountered when developing this sample app?
Here is my Configure section in Startup.cs:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
//app.UseDeveloperExceptionPage();
app.UseWebAssemblyDebugging();
}
else
{
//app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseMiddleware<ErrorHandlingMiddleware>();
app.UseBlazorFrameworkFiles();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthentication();
app.UseMiddleware<CustomIdentityMiddleware>(); // Add the role claim.
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
endpoints.MapControllers();
endpoints.MapFallbackToFile("index.html");
});
}
And the CustomIdentityMiddleware:
public class CustomIdentityMiddleware
{
private readonly RequestDelegate _next;
public CustomIdentityMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task InvokeAsync(HttpContext context, IUserProfilesService userProfilesService)
{
if (context.User.Identity.IsAuthenticated)
{
var userProfile = await userProfilesService.GetProfileByUserId();
if (userProfile != null)
{
string roleName = userProfile.IsHelper ? "Helper" : "Helped";
context.User.AddIdentity(new ClaimsIdentity(new Claim[] { new Claim(ClaimTypes.Role, roleName) }));
}
}
await _next(context);
}
}
As you can see, I (hopefully) followed your instructions, step-by-step.
Kind Regards
Hello
If you set a breakpoint, is getting hit or no?
Yes. I set a breakpoint within InvokeAsync. It’s not getting hit.
It’s unusual.
Okay then could you set a breakpoint in the ErrorHandlingMiddleware just to make sure that no error is getting thrown?
Just checked. No error is being thrown.
This interesting is it possible for you to share the code with please on GitHub or somewhere so I can take look?
Thank you. That would be wonderful.
https://github.com/lockhartsoftware/Davos.HelpCareHero
It seems nothing wrong with that the breakpoint is getting hit on my side

Thanks for looking. This is crazy. It's still not working for me.