Activities of "464199480"

Delete MauiCurrentPrincipalAccessor GetClaimsPrincipal method returns read SecureStorage code, it works

I've done some experiments that I hope will help.

  1. Create a Hello World solution for maui
  2. Trigger SecureStorage by clicking a button

This is not working code

private void OnCounterClicked(object sender, EventArgs e)
{
    count++;

    if (count == 1)
        CounterBtn.Text = $"Clicked {count} time";
    else
        CounterBtn.Text = $"Clicked {count} times";

    SecureStorage.Default.SetAsync("__access_token", CounterBtn.Text).GetAwaiter();

    var values = SecureStorage.Default.GetAsync("__access_token").GetAwaiter().GetResult()!;

    SemanticScreenReader.Announce(values);
}

This is working code

private async void OnCounterClicked(object sender, EventArgs e)
{
    count++;

    if (count == 1)
        CounterBtn.Text = $"Clicked {count} time";
    else
        CounterBtn.Text = $"Clicked {count} times";

    await SecureStorage.Default.SetAsync("__access_token", CounterBtn.Text);

    var values = await SecureStorage.Default.GetAsync("__access_token");

    SemanticScreenReader.Announce(values);
}

I think the relationship between void OnCounterClicked and async void OnCounterClicked is async

abp update ABP CLI 7.4.2 Cannot update Volo.* packages! An error occurred while updating the package "Volo.Abp.Core". Error: Object reference not set to an instance of an object. Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.UpdateVoloPackagesAsync(String content, Boolean includeNightlyPreviews, Boolean includeReleaseCandidates, Boolean switchToStable, SemanticVersion latestNugetVersion, SemanticVersion latestNugetReleaseCandidateVersion, String latestMyGetVersion, String specifiedVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 184 Volo packages are updated in Taitans.Abp.Commercial.Core project.

Sorry. I regenerated the angular project, but it didn't work and seems to have something to do with the latest npm package

What's changes of your app.module.ts?

no change

Do you have other changes?

  1. abp new Acme.BookStore -t app-pro -u angular
  2. angular environment oAuthConfig responseType value change to password

connect/token response content:

This is normal. angular will handle it. I'm confirming the JSON issue.

i thinke problem in return value of userid

Before version 6.0, it looked like this: AB0D7FDD-5CFC-4D87-8151-F60A407D1BF4 Now it's not normal: AB0D7FDD5CFC4D878151F60A407D1BF4

oAuthConfig responseType value change to password

const oAuthConfig = {
  issuer: 'https://localhost:44315/',
  redirectUri: baseUrl,
  clientId: 'AookStore_App',
  responseType: 'password',
  scope: 'offline_access AookStore',
  requireHttps: true,
};

connect/token response content:

{
  "error": "invalid_grant",
  "error_description": "RequiresTwoFactor",
  "error_uri": "https://documentation.openiddict.com/errors/ID2024",
  "userId": "3a08d211853056ae830ab00738ba8ff2",
  "twoFactorToken": "CfDJ8MESOkCl5uN=="
}
{
   "token":"CfDJ8MESOkC",
   "userId":"3a08d211853056ae830ab00738ba8ff2",
   "provider":"Email"
}
Showing 41 to 50 of 51 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.0.0-preview. Updated on September 05, 2025, 09:28