Starts in:
0 DAY
14 HRS
2 MIN
1 SEC
Starts in:
0 D
14 H
2 M
1 S

Activities of "liangshiwei"

okay

dotnet dev-certs https -v -ep openiddict.pfx -p a0166a3a-5ffb-4f53-a8d7-a699d3c3ce1e

Hi,

The Authority must be reachable

And I can custom application without any problem

Answer

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(...)
    }

Hi,

I already provided some example code here, I think you can understand the logic and apply it to your project.

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
        ....
        
    }
}
Showing 91 to 100 of 6105 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06