Activities of "robb"

Yes, I would actually agree with that. I think clearing the cache was an important step in completing the upgrade.

I eventually got this all working by reversing the process multiple times and re-trying. I am not even sure what changed or why it is working now.

This is the update log from 2.9.0 to 3.0.4:

[11:03:31 INF] ABP CLI (https://abp.io)
[11:03:32 INF] Version 3.0.1 (Stable channel)
[11:03:33 WRN] ABP CLI has a newer stable version 3.0.4, please update to get the latest features and fixes.
[11:03:33 WRN] 
[11:03:33 WRN] Update Command: 
[11:03:33 WRN] dotnet tool update -g Volo.Abp.Cli
[11:03:33 WRN] 
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Host.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Pro.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Public.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Admin.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.Application" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.ObjectExtending" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Host.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Pro.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Public.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Admin.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.Application.Contracts" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Autofac" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.Domain.Identity" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.Domain.IdentityServer" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.BackgroundJobs.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.SettingManagement.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.Domain" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.BackgroundJobs.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.SettingManagement.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.Domain.Shared" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Commercial.SuiteTemplates" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.EntityFrameworkCore.SqlServer" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.SettingManagement.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.BackgroundJobs.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.EntityFrameworkCore" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Pro.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Admin.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Public.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Host.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.HttpApi" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.PermissionManagement.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Host.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Pro.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Admin.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.HttpApi.Client" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Autofac" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AspNetCore.Authentication.JwtBearer" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.FeatureManagement.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Public.Web.IdentityServer" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Account.Pro.Admin.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AuditLogging.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Identity.Pro.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LeptonTheme.Management.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.IdentityServer.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.LanguageManagement.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Saas.Host.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TextTemplateManagement.Web" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.EntityFrameworkCore.Sqlite" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Http.Client.IdentityModel" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.TestBase" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Autofac" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.Authorization" from v2.9.0 to v3.0.4.
[11:03:37 INF] Updating package "Volo.Abp.AspNetCore.TestBase" from v2.9.0 to v3.0.4.
[11:03:37 INF] Volo packages are updated in AWM solution.
[11:03:37 INF] Checking installed npm global packages...
[11:03:41 INF] Updated @volo/abp.aspnetcore.mvc.ui.theme.lepton to ~3.0.4 in \src\AWM.Web\package.json.
[11:03:42 INF] Updated @abp/chart.js to ~3.0.4 in \src\AWM.Web\package.json.
[11:03:43 INF] Updated @volo/identity to ~3.0.4 in \src\AWM.Web\package.json.
[11:03:44 INF] Running Gulp on C:\Projects\Code\Amazon\AWM\src\AWM.Web\
[11:03:45] Using gulpfile C:\Projects\Code\Amazon\AWM\src\AWM.Web\gulpfile.js
[11:03:45] Starting 'default'...
[11:03:49] Finished 'default' after 3.51 s

There are still significant problems.

Now I have upgraded to 3.0.4 using the CLI

abp update

Which seems to correctly update all the Nuget packages so no manual editing is required. Also I have npm installed and so the npm and gulp tasks complete ok.

And the project runs, but I still can't load data into the DataTables for the entities I created while on version 2.9.0. It gets stuck at "Processing" and the console fills up with errors.

Thanks, but for reference the above code is not quite correct. Return 404 if the user is NOT authenticated or is NOT a member of the admin role.

            app.Use(async (httpContext, next) =>
            {
                if (httpContext.Request.Path.Value.ToLower().Contains("swagger"))
                {
                    var user = httpContext.RequestServices.GetService<ICurrentUser>();

                    if (!user.IsAuthenticated || !user.IsInRole("admin"))
                    {
                        httpContext.Response.StatusCode = 404;
                        return;
                    }
                }

                await next.Invoke();
            });

I don't think what you just said is entirely correct. I think you mean create a new Client. And roles do not apply to Clients, I think you mean API Resources/Scopes.

So given that what I have just said is assumed to be true, what is the authorization header I need to use to decorate my API methods?

Something like:

[Authorize]

except that doesn't seem to work.

Thank you for the information.

In what file do we add this?

I've added a client using ABP and I can get a token

But after I set the token using SetBearerToken(...), when I call GetAsync, I get a HTML response that shows I have been redirected to the ABP login page

How can I get the token to allow access to any of the API endpoints I choose?

We noticed that if you aren't logged in, if you hit /swagger, you get the full listing of API endpoints. We do not want to publish this. We would like to disable swagger. Preferably, swagger would still work if you are logged in as an admin user, but if that is too complicated we will consider simply disabling it. How can we do this?

This is not working.

Do you have a working code example of an API endpoint secured using Identity Server Client Credentials?

Showing 21 to 30 of 38 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35