Base solution for your next web application

Activities of "ajayak"

That looks promising. I'll keep an eye on framework for the new .NET Core integration in this framework. Also, switching DI container is not an easy task. For now, I will start on my project with ABP 1.0.0 and by few months, hopefully someone will do the upgradation :D

Also I have checked other form posts and I guess ASP.NET Core with Angular 2 is rolling out very soon :D :D

I am trying to call ASP.NET Core controllers from Rest Client. As in ASP.NET Core, Controller and ApiController are merged and I can now use Controller as Web API.

I'm using ASP.NET Core

I have created a Shopify app. When user clicks a button on my page, then I'm redirecting the user to Shopify app page. On that page, there is an Install button. User clicks on install and Shopify install the app. After installing, Shopfiy calls a url in my app and I don't have any control over request parameters

Hi @ismcagdas,

IHttpContextAccessor solution worked for me :)

Hi aaron,

CORS is configured correctly in the app as

services.AddCors(options =>
            {
                options.AddPolicy(DefaultCorsPolicyName, builder =>
                {
                        .AllowAnyOrigin()
                        .AllowAnyHeader()
                        .AllowAnyMethod();
                });
            });

and used as

app.UseAbp(options =>
            {
                options.UseAbpRequestLocalization = false; //used below: UseAbpRequestLocalization
            });

            app.UseCors(DefaultCorsPolicyName); //Enable CORS!

All the other app services are working fine. Only getting Internal Server error on line:

throw new UserFriendlyException(L("PP_Invalid_Shopify_Url"));

In browser, it says CORS error but I suspect it to be something else.

Hi @aaron,

This is in continuation to #3984. All the problems go away after I removed Microsoft.AspNetCore.Mvc from ApplicationService. But I'm still stuck with Redirect.

I believe creating IRedirectionDelegate could solve my problem. Can you share a sample for that? :)

Hi @aaron,

For the previous post, the issue was resolved by removing Microsoft.AspNetCore.Mvc. I thought it would be better to create a new post as it is a simple clear thing. Earlier post was a mess. Apologies for that.

I am facing this issue.

public async Task GetShopifyInstall(string shop)
        {
            var redirectUrl = _shopifyManager.GetAuthRedirectUrl(shop);
            //********** How to redirect here?**********
        }

Hi @piapps,

Use exact version of primeNg in package.json.

"primeng": "4.2.0-rc.1",

Hi @ismcagdas,

On my angular app, I am redirecting the user external url as

window.location.href = externalUrl;

On the external page, there is a button to accept the agreement, which calls my app back. On debug, I found that ApbSession.UserId is null along with most of the properties in AbpSession. If I use [AbpAuthorize] on top of method, I get Authentication error when redirecting to my app.

Showing 1 to 10 of 109 entries