Activities of "berkansasmaz"

Creating a tag helper is standard, you can check Microsoft's documents. If you want to customize one of the ABP's tag helpers, you can create a class deriving from the taghelperservice class of any one (example: https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Button/AbpButtonTagHelperService.cs), then replace the original in the dependency injection system.

https://github.com/abpframework/abp/pull/11985

We solved the problem, it will be in use with the 5.2.0-rc.2 version, FYI.

Thanks for the suggestion. I agree with you on this.

I will create an internal issue about this and if the team sees it appropriate, we will implement it.


Closing the issue. Feel free to re-open or create a new issue if you have further questions related to this.

https://docs.abp.io/en/commercial/latest/modules/identity/two-factor-authentication#why-dont-users-receive-a-verification-code-even-2fa-enabled

Although the 2FA setting is enabled, users may not be able to use 2FA. This is because the user does not have a verified e-mail or phone number. The verification code cannot be sent to an unverified address for security measures. Ensure that Verified label next to email or phone number to ensure that corresponding user can receive verification code.

2FA cannot be used for unverified phone numbers and email addresses, one must be verified.

I tested this situation on version 5.2.0-rc.1 and I did not see a problem.

Note: As far as I know there were a few bugs about this in older versions but the issues have been fixed, FYI.


Closing the issue. Feel free to re-open or create a new issue if you have further questions related to this topic.

@EngincanV, can you test this situation with Package Manage Console in VS

https://docs.abp.io/en/commercial/latest/modules/account#social-external-logins

The application startup template comes with Twitter, Google and Microsoft logins pre-installed.


This question does not appear to be related to ABP.

Here is a quote from Microsoft's article about external providers:

Facebook, Twitter, Google, and Microsoft providers are covered in the following sections and use the starter project created in this article. Other providers are available in third-party packages such as AspNet.Security.OAuth.Providers and AspNet.Security.OpenId.Providers.

AspNet.Security.OAuth.Providers package supports Apple provider and I think you can use it easily.

For instance:

services.AddAuthentication(options => { /* Authentication options */ })
         .AddApple(options =>
         {
            ....
         });

For more information see here.

ABP extends ASP.NET Core Authorization by adding permissions as auto policies and allowing authorization system to be usable in the application services too.

So it supports complex scenarios such as:

public Task MyAction1Async()
{
    await CheckMyAction1PolicyAsync();
    // ...
}

public Task MyAction2Async()
{
    await CheckMyAction2PolicyAsync();
    // ...
}

public Task MyAction3Async()
{
    await CheckMyAction3PolicyAsync();
    // ...
}

private Task CheckMyAction1PolicyAsync()
{
    // requires Permission1 and Permission2
    await AuthorizationService.CheckAsync("Permission1");
    await AuthorizationService.CheckAsync("Permission2");
}

private Task CheckMyAction2PolicyAsync()
{
    // requires Permission1 or Permission2
    if (!await AuthorizationService.IsGrantedAnyAsync("Permission1", "Permission2"))
    {
        throw new AbpAuthorizationException("my code");
    }
}

private Task CheckMyAction3PolicyAsync()
{
    // requires (Permission1 or Permission2) and Permission3
    if (!await AuthorizationService.IsGrantedAnyAsync("Permission1", "Permission2") ||
        !await AuthorizationService.IsGrantedAsync("Permission3"))
    {
        throw new AbpAuthorizationException("my code");
    }
}

In addition, using Organization Unit will make your job easier in terms of management.

Organization units (OU) is a part of Identity Module and can be used to hierarchically group users and entities.

References:

  1. https://github.com/abpframework/abp/pull/10152
  2. https://docs.abp.io/en/abp/3.1/Modules/Organization-Units#:~:text=Organization%20units%20(OU)%20is%20a,hierarchically%20group%20users%20and%20entities.

You can open two modals on top of each other, there is no problem, but this is not recommended due to backdrop problems in bootstrap.

References:

  1. https://stackoverflow.com/questions/19528173/bootstrap-open-another-modal-in-modal
  2. https://stackoverflow.com/questions/39588698/bootstrap-multiple-modals-modal-backdrop-issue
  3. https://www.google.com/search?q=bootstrap+4+multiple+modals+modal-backdrop+issue&ei=yUMwYqXpBO6Dxc8Pv7mSmAY&ved=0ahUKEwjl8cuyz8f2AhXuQfEDHb-cBGMQ4dUDCA4&uact=5&oq=bootstrap+4+multiple+modals+modal-backdrop+issue&gs_lcp=Cgdnd3Mtd2l6EAM6BwgAEEcQsAM6BQgAEIAESgQIQRgASgQIRhgAUMcDWNcNYNsRaAJwAXgAgAGNAYgB_wKSAQMwLjOYAQCgAQHIAQjAAQE&sclient=gws-wiz

If you're trying to do this for the ExtraProperties field in the database, you can't. Because the properties set in the ExtraProperties field are stored as a single JSON object.


However, you can refer to this document which explains the more natural way to do it.

If you have already mapped the property to ef core as stated in the document, you can use the query, below. Because the property you add is kept as a separate column in the database table.

var query = (await GetQueryableAsync()).Where(u => EF.Property<string>(u, "Nickname") == "John");

References:

  1. https://github.com/abpframework/abp/blob/dev/docs/en/Community-Articles/2021-05-24-Removing-EfCore-Migrations/POST.md#querying-based-on-a-custom-property
  2. https://github.com/abpframework/abp/blob/dev/docs/en/Community-Articles/2021-05-24-Removing-EfCore-Migrations/POST.md#mapping-to-the-database-table

I did tests for both the 4.4.4 and 5.1.3 versions, apparently, this is a bug.

So, I am creating an internal issue related to the topic, FYI.

Thank you for the report.

Showing 231 to 240 of 331 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30