dotnet dev-certs https -v -ep openiddict.pfx -p a0166a3a-5ffb-4f53-a8d7-a699d3c3ce1e
Hi,
Please create a new question, thanks.
I don't know what is different between openiddictapplication and the others. Because I already done to add more custom field on saastenant but I am not able to add more field and display it on UI on admin to process it. And I see in the saastenant we have saastenantCreateDTO and saastenantUpdateDTO but openIddictApplication doesn't have it. Please let me know how can I implement it for openIdidictApplication.
you should add custom fields on openIdidictApplication
ObjectExtensionManager.Instance.Modules()
.ConfigureOpenIddict(openid =>
{
openid.ConfigureApplication(...)
}
See https://abp.io/docs/latest/framework/architecture/modularity/extending/module-entity-extensions
you can check this https://abp.io/support/questions/8278/SSO-login-like-external-provider#answer-3a1655f8-011b-019e-4e65-5984107ee69b
It works for me
context.Services.AddAuthentication()
.AddOpenIdConnect("test","test", options =>
{
options.Authority = "https://localhost:44363/";
options.ClientId = "test";
options.Events.OnRedirectToIdentityProvider = async redirectContext =>
{
redirectContext.ProtocolMessage.IssuerAddress = "https://test.com";
redirectContext.ProtocolMessage.Parameters["client_id"] = "test2";
};
});
Email 'abhishek101@gmail.com' is already taken.
I think the error message is clear, there already a user with email abhishek101@gmail.com
2.
you can remove admin
role for admin
user manually, and assign a new role to this user.
private async Task AssignPermissionsToAdminRoleAsync(Guid tenantId)
{
using (_currentTenant.Change(tenantId))
{
var user = await _identityUserManager.FindByEmailAsync(Input.EmailAddress);
// remove admin role and assign a new role here
....
}
}