Can I check it remotely? shiwei.liang@volosoft.com
Cannot resolve parameter 'Volo.Abp.Identity.IIdentityRoleRepository roleRepository' of constructor
Did you add module dependencies?
[DependsOn(
typeof(AbpIdentityApplicationModule)
)]
Hi,
Example:
public class MyAbpClaimsPrincipalContributor : IAbpClaimsPrincipalContributor, ITransientDependency
{
public Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
{
var claimsIdentity = new ClaimsIdentity();
claimsIdentity.AddIfNotContains(new Claim("Organization", "OrganizationValue"));
context.ClaimsPrincipal.AddIdentity(claimsIdentity);
return Task.CompletedTask;
}
}
public class MyAbpClaimsService : AbpClaimsService
{
public MyAbpClaimsService(IProfileService profile, ILogger<DefaultClaimsService> logger) : base(profile, logger)
{
}
protected override IEnumerable<string> FilterRequestedClaimTypes(IEnumerable<string> claimTypes)
{
return base.FilterRequestedClaimTypes(claimTypes)
.Union(new []{
AbpClaimTypes.TenantId,
AbpClaimTypes.EditionId,
"Organization"
});
}
}
context.Services.Replace(ServiceDescriptor.Transient<IClaimsService, MyAbpClaimsService>());
Hi,
You need to reference Identity
module.
e.g: Account module: https://github.com/abpframework/abp/blob/12d92700a0396367a7e749d662e92c167b7f260d/modules/account/src/Volo.Abp.Account.Application/Volo/Abp/Account/AbpAccountApplicationModule.cs#L16
Then you can inject the repository to get the user list.
If you deploy identity as a separate service and use a separate database. You need to set the connection string:
{
"ConnectionStrings": {
"MyModuleNameService": "Server=localhost;Database=MyProjectName_MyModuleNameService;Trusted_Connection=True",
"AbpIdentity": "Server=localhost;Database=MyProjectName_IdentityService;Trusted_Connection=True"
}
}
Hi,
Try
update IdentityServerClientRedirectUris set RedirectUri = 'https://avalancheocp.tvdinc.com/authentication/login-callback' where RedirectUri = 'https://localhost:44307/authentication/login-callback'
HI,
Yes, you need to update your project version to latest.
See https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_0, https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_2
Hi,
https://avalancheocp.tvdinc.com/authentication/login-callback
https://localhost:44307/authentication/login-callback
You need to change the client's redirect_uri
in the database table.
The easy way:
Hi,
Put the _ViewImports.cshtml
file in the Pages\Account
folder of your .HttpApi.Host
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
@addTagHelper *, Owl.reCAPTCHA
Hi,
You can check the sample : https://github.com/abpframework/abp-samples/tree/master/EmailSendDemo