VK
VK
CC#
Created by VK on 5/9/2024 in #help
Unable to get all the azure ad groups details which logged in user is a part of.
I'm using Azure AD login for an app to login with Microsoft credentials and get the groups (and their info) that the user is a part of. With this line I'm able to get the logged in user: var userClaims = User.Identity as System.Security.Claims.ClaimsIdentity; With this line I'm unable to get the groups that the user is a part of: var groups = userClaims?.Claims.Where(claim => claim.Type == "groups").Select(c => c.Value); any idea why? and what will be the fix?
1 replies
CC#
Created by VK on 12/14/2023 in #help
how to to register multiple Entity Framework Core database providers
how to to register multiple Entity Framework Core database providers (Microsoft.EntityFrameworkCore.Sqlite and Pomelo.EntityFrameworkCore.MySql) in the same service provider. Error: Services for database providers 'Microsoft.EntityFrameworkCore.Sqlite', 'Pomelo.EntityFrameworkCore.MySql' have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible ensure that entity framework is managing its service provider by removing the call to 'UseInternalServiceProvider' . Otherwise consider conditionally registering the database provider or maintaining one service provider per database provider.
5 replies
CC#
Created by VK on 11/15/2023 in #help
Can anybody help on how to implement Azure AD Authentication in ASP.NET web app(.NET Framework)?
Need help to implement Azure AD Authentication.
20 replies