Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "olivierroecker"

Question

Hi, I would like to use the WebApi Method expose by Swagger; There are a core Method Account\Authenticate to get a token.

How is it possible to use the Impersonate mecanism with WebApi ? In my business case, i have a user : UserName, Password as host user with goods rights, and a UserId and TenantId.

How can i get a token to consume the Api API with these 4 informations.

I'm using ABP 3.4.0 with a Aspnetzero MVC Project

Thanks Oliver :)

In an ApplicationService, i would check if a user have a Permission.

But when i use the PermissionChecker.IsGranted function, it return the false value... in all case...

See my code :

public async Task DoRecurrentReportAsync()
        {
            using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant))
            {
                var query = _userManager.Users.Where(p => p.IsActive).ToList();
                foreach(var user in query)
                {
                    if (user.TenantId.HasValue)
                    {
                        var userIdentifier = new UserIdentifier(user.TenantId.Value, user.Id);
                        var checker = PermissionChecker.IsGranted(userIdentifier, true, new string[] { AppPermissions.Pages_Tenant_Contracts });
                        if (checker)
                        {
                            await SendContractsDashboard(user.TenantId.Value, user.Id);
                        }
                    }
                }
            }
        }

Thanks for your help

Question

Hi, I don't undestand, or i don't find what is the URL callback that i must put in the Google Setup Oauth ? Where can i find the answer ?

is it <a class="postlink" href="https://mysite/signin-google">https://mysite/signin-google</a> ? or <a class="postlink" href="https://mysite/Account/ExternalLoginCallBack">https://mysite/Account/ExternalLoginCallBack</a> ?

Thank by advance

Hi,

In a Modal form with a textarea, i would add a carriage return in a textarea field, but the Submit event is all times fire. I had tested these solutions follow by with no success <a class="postlink" href="http://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter">http://stackoverflow.com/questions/8951 ... ting-enter</a>

in your aspnetzero packake, in the Administration/language, it's the same problem, i can't have a text in two lines... :? Can you propose to us a workaround ?

Best regards Olivier

At this time, the default subject of the Email Activation code is "AbpZeroTemplate Security Code". Where or how can i change the subject of this email ?

Best regards

Hi, A this time, I can send a SMS to use a Two Factor Login, but the Phone Number in the user Profile must be confirmed, the boolean IsConfirmedPhoneNumber must be set to True. Do you implement in the ASPNZETZERO source code to change this boolean to True or the Admin must change it directly in the BDD with a SQL Script ? In a next release, do you plan to add all features around the Phone Number management ? change to false when the user change is number and resend a check SMS ? etc....

Bests regards

Hi, I'm using the Developing step-by-step MPA tutorial to create my own Proof of Concept, the Entity People became Contact etc... A this time, the table is successfully created on DBB SqlServer 2016 with a id type Guid (not long or int). See my my code: public class Contact : FullAuditedEntity<Guid> { public override Guid Id { get; set; }

    public Contact()
    {
        Id = SequentialGuidGenerator.Instance.Create();
    }

===================.... ================= This table exists in my BDD, but the task Update-Database doesn't run the Seed process No error, no warning, just a table empty at the end...

using System.Linq; using Lexigone.Loxo_FrontOffice.EntityFramework; using Lexigone.Loxo_FrontOffice.LexDirectory;

namespace Lexigone.Loxo_FrontOffice.Migrations.Seed.Tenants { public class InitialContactCreator { public readonly Loxo_FrontOfficeDbContext _context;

    public InitialContactCreator(Loxo_FrontOfficeDbContext context)
    {
        _context = context;
    }

    public void Create()
    {
        var etienne = _context.Contacts.FirstOrDefault( p => p.EmailAddress == "[email protected]");
        if(etienne == null)
        {
            _context.Contacts.Add(
                new Contact
                {
                    FirstName = "Etienne",
                    LastName = "Tronc",
                    EmailAddress = "[email protected]"
                }
            );
        }

===================================..... ==============================

Can you help me ? Bests Regards. Olivier

Showing 1 to 7 of 7 entries