Activities of "jaylin"

Let me try, I saw this thread, but I was not sure if it can be applied to v8.2.2.

Don't worry about my above question, I found others have similar problem - register but also update the user info which broke the security stamp.

However, I have another question, as I need to create a Sign Up button in Angular. There is a navigateToLogin method in auth service, but there is no such navigateToRegister method. login() { this.authService.navigateToLogin(); }

I customised my own one, but it didn't invoke the /token endpoint therefore, the user registered through my custom flow will not be authenticated straight away, until they actively click on "register" / "login" to refresh the page to get logged in.

async navigateToRegisterEx2() {
const authServerUrl = environment.oAuthConfig.issuer;
const responseType = environment.oAuthConfig.responseType;
const clientId = environment.oAuthConfig.clientId;
const redirectUri = environment.oAuthConfig.redirectUri;
const scope = environment.oAuthConfig.scope;

// Generate PKCE parameters
const codeVerifier = this.generateCodeVerifier();
const codeChallenge = await this.generateCodeChallenge(codeVerifier);
const state = this.generateState();
const nonce = this.generateNonce();

// Store PKCE parameters in session storage for later use
sessionStorage.setItem('code_verifier', codeVerifier);
sessionStorage.setItem('state', state);
sessionStorage.setItem('nonce', nonce);

const returnUrl = encodeURIComponent(
  `/connect/authorize?response_type=${responseType}&client_id=${clientId}&redirect_uri=${encodeURIComponent(
    redirectUri
  )}&scope=${encodeURIComponent(
    scope
  )}&state=${state}&code_challenge=${codeChallenge}&code_challenge_method=S256&nonce=${nonce}&culture=en&ui-culture=en`
);

window.location.href = `${authServerUrl}Account/Login?register=true&returnUrl=${returnUrl}`;

}

I could not find anywhere to invoke the out of box Register OAuthFlow in angular. Please advise.

Thanks for the quick response, I figured it out, you are right, I need to add --version 8.3.4 to support .NET 8.

I am wondering why dotnet tool install -g Volo.Abp.Studio.Cli was working 4 days ago, then stopped today?

Thanks liming, I found install-libs is not necessary anymore. See those 2 steps below, install-libs was trying to run "yarn install v.22.22" too, that's why I think it conflicts with yarn install.

Run abp install-libs --working-directory . [03:41:36 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli [03:41:36 WRN] Volo.Abp.Studio.Extensions.StandardSolutionTemplates extension not found in the NuGet cache. Directory: /home/runner/.nuget/packages/volo.abp.studio.extensions.standardsolutiontemplates/0.9.13/lib/net8.0 [03:41:36 INF] Volo.Abp.Studio.Extensions.StandardSolutionTemplates (v: 0.9.13) extension trying install from the NuGet 📌 ABP CLI 0.9.13 (Beta) Checking extensions... [03:41:41 INF] Volo.Abp.Studio.Extensions.StandardSolutionTemplates (v: 0.9.13) package downloaded from https://api.nuget.org/v3/index.json and saved to (/home/runner/.nuget/packages/) 🧩 Extensions downloaded: Volo.Abp.Studio.Extensions.StandardSolutionTemplates 🚲 The CLI is restarting to apply the changes with arguments: install-libs --working-directory . [03:41:42 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli Checking extensions... [03:41:42 INF] Found 1 projects. [03:41:42 INF] . [03:41:43 INF] Running Yarn on . yarn install v1.22.22 [1/4] Resolving packages... [2/4] Fetching packages... 51s Run yarn install yarn install v1.22.22 [1/4] Resolving packages... [2/4] Fetching packages... error Error: ENOTEMPTY: directory not empty, rmdir '/home/runner/.cache/yarn/v6/npm-date-fns-2.30.0-f367e644839ff57894ec6ac480de40cae4b0f4d0-integrity/node_modules/date-fns' info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Error: Process completed with exit code 1.

After removing abp install-libs step, the pipeline works. I guess those licensed abp npm packages are not forced to be downloaded by install-libs anymore.

Hey mate, that's coming from your payment package. I don't have ng.theme-shared in my package.json.

{
  "name": "@volo/abp.ng.payment",
  "version": "8.2.3",
  "peerDependencies": {
    "@abp/ng.core": ">=8.2.3",
    "@abp/ng.theme-shared": ">=8.2.3"
  },
  "dependencies": {
    "@volo/abp.commercial.ng.ui": "~8.2.3",
    "tslib": "^2.0.0"
  },
  "publishConfig": {
    "access": "public"
  },
  "homepage": "https://abp.io",
  "repository": {
    "type": "git",
    "url": "https://github.com/volosoft/volo.git"
  },
  "license": "LGPL-3.0",
  "keywords": [
    "aspnetcore",
    "boilerplate",
    "framework",
    "web",
    "best-practices",
    "angular",
    "maui",
    "blazor",
    "mvc",
    "csharp",
    "webapp"
  ],
  "module": "fesm2022/volo-abp.ng.payment.mjs",
  "typings": "index.d.ts",
  "exports": {
    "./package.json": {
      "default": "./package.json"
    },
    ".": {
      "types": "./index.d.ts",
      "esm2022": "./esm2022/volo-abp.ng.payment.mjs",
      "esm": "./esm2022/volo-abp.ng.payment.mjs",
      "default": "./fesm2022/volo-abp.ng.payment.mjs"
    },
    "./admin": {
      "types": "./admin/index.d.ts",
      "esm2022": "./esm2022/admin/volo-abp.ng.payment-admin.mjs",
      "esm": "./esm2022/admin/volo-abp.ng.payment-admin.mjs",
      "default": "./fesm2022/volo-abp.ng.payment-admin.mjs"
    },
    "./proxy": {
      "types": "./proxy/index.d.ts",
      "esm2022": "./esm2022/proxy/volo-abp.ng.payment-proxy.mjs",
      "esm": "./esm2022/proxy/volo-abp.ng.payment-proxy.mjs",
      "default": "./fesm2022/volo-abp.ng.payment-proxy.mjs"
    },
    "./admin/config": {
      "types": "./admin/config/index.d.ts",
      "esm2022": "./esm2022/admin/config/volo-abp.ng.payment-admin-config.mjs",
      "esm": "./esm2022/admin/config/volo-abp.ng.payment-admin-config.mjs",
      "default": "./fesm2022/volo-abp.ng.payment-admin-config.mjs"
    }
  },
  "sideEffects": false
}

Please read and answer my questions one by one:

  1. Is dotnet tool install -g Volo.Abp.Cli still a valid command or obsolete?
  2. Is it necessary to run abp install-libs?
  3. Why install-libs used to have 4 successful steps, but not it only has 2? Before upgrade abp cli:

After upgrade abp cli:

  1. Is it still recommended to use yarn (v1.22) or npm?
  2. How can I rollback to Volo.Abp.Cli version '8.3.4'?

It's .NET 8.

I am not sure if the latest cli impacts install-libs or not, see the info below when I ran abp install-libs, it sounds like the CLI is not up to date. [10:43:57 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli Checking extensions...

yarn start works fine locally.

I tried npm as well, it could not find the @abp/ng.theme-shared.

Run npm install npm warn ERESOLVE overriding peer dependency npm warn While resolving: @volo/abp.ng.payment@8.2.3 npm warn Found: @abp/ng.theme-shared@undefined npm warn node_modules/@abp/ng.theme-shared npm warn npm warn Could not resolve dependency: npm warn peer @abp/ng.theme-shared@">=8.2.3" from @volo/abp.ng.payment@8.2.3 npm warn node_modules/@volo/abp.ng.payment npm warn @volo/abp.ng.payment@"~8.2.2" from the root project npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@abp%2fng.theme-shared - Not found npm error 404 npm error 404 '@abp/ng.theme-shared@>=8.2.3' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-12-01T11_21_52_003Z-debug-0.log Error: Process completed with exit code 1.

Welcome back maliming, thanks for your reply.

I have resolved this issue referring to the others reply, similar to yours but ExposeService.

[ExposeServices(typeof(StripePaymentGateway))]
public class CustomStripeGateway : StripePaymentGateway
{
    public CustomStripeGateway(
        IPaymentRequestRepository paymentRequestRepository,
        IPurchaseParameterListGenerator purchaseParameterListGenerator,
        IPlanRepository planRepository,
        IOptions<StripeOptions> stripeOptions,
        ILogger<StripePaymentGateway> logger,
        IDistributedEventBus eventBus,
        IObjectMapper objectMapper
    )
        : base(
            paymentRequestRepository,
            purchaseParameterListGenerator,
            planRepository,
            stripeOptions,
            logger,
            eventBus,
            objectMapper
        )
    { }

    public override Task HandleWebhookAsync(string payload, Dictionary<string, string> headers)
    {
        if (!headers.ContainsKey("Stripe-Signature") && headers.ContainsKey("stripe-signature"))
        {
            headers["Stripe-Signature"] = headers["stripe-signature"];
            headers.Remove("stripe-signature");

            // Log the information
            Logger.LogInformation("Stripe-Signature header was missing, but stripe-signature was present. Converted stripe-signature to Stripe-Signature.");
        }

        // Volo Stripe Payment expects Stripe-Signature in the headers
        return base.HandleWebhookAsync(payload, headers);
    }
}

Is the header key case sensitive? I captured the header in the request, its lower case.

"stripe-signature": [ "t=1730242133,v1=decaaca94f84b9e6c0523c2f283945f52a8a2e6ce0ab654bade8aa51dc2a98a5,v0=08b2da9f09b998a63e483b36ee2cf7325769eeb650ab665ed42f3e14f4cfc69a" ],

I have Application Gateway (WAF_v2) in front of the API (webhook), even I disabled the Web Application Firewall, the issue still happened.

Problem Id System.Collections.Generic.KeyNotFoundException at Volo.Payment.Stripe.StripePaymentGateway+<HandleWebhookAsync>d__25.MoveNext Assembly Volo.Payment.Stripe.Domain, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null ActionId 46ab5810-8ae3-4668-88ec-1dc6eb213d2b ConnectionId 0HN7NVU4BKI1E MessageTemplate The given key 'Stripe-Signature' was not present in the dictionary. RequestId 0HN7NVU4BKI1E:00000006 SourceContext Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter RequestPath /api/payment/stripe/webhook ActionName Volo.Payment.Requests.PaymentRequestController.HandleWebhookAsync (Volo.Payment.HttpApi)

It's similar to https://abp.io/support/questions/4386/Error-from-ABP-commercial-payments-module-stripe-webhook-callback-handling-bug#answer-df4c481c-cbb9-299f-b150-3a08fa8e68da, but it has been resolved 2 years ago, I am wondering how comes the key was missing in the header.

I have double checked the secrets, they are correct.

Thanks, so I have to create a new table to manage the User - Plan relation, once recurring payment comes, I need to extend the subscription expiry to next month (if recurring monthly)?

I didn't find any invoice ready "Distributed Events", how can I implement such event?

Showing 1 to 10 of 20 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 12, 2025, 10:36
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.