Hi @gterdem, thanks for the answer
We have been trying to use this without luck. Is there something more we need to do? There is some puzzle missing..
Hi
We are having problems connecting SignalR to the public MVC page and are getting the following error
We have successfully been using SignalR for our Blazor WASM backend (hosted as static website in Azure) so we know all about how SignalR should work (or we thought at least).
We have been trying all kinds versions of CORS settings in HttpApi.Host without luck
This didn´t do anything (now we are just using app.UseCors()
)
app.UseCors(x => x
.AllowAnyMethod()
.AllowAnyHeader()
.SetIsOriginAllowed(origin => true)
.AllowCredentials());
Is there a documentation or some other steps that we might be missing for for connecting with signalR in MVC public web app?
Based on this https://support.abp.io/QA/Questions/4513/Gdpr-Module-Unauthorized-to-download-Personal-Data#answer-3a098ab9-16d8-036d-f117-06e18b42d998, @EngincanV I updated to 7.0.2 but this has not fixed my issue.
Is there anything I can try out?
CDN cache got flushed and Redis is up and running (flushed that also)
But I see in the log we are getting AuthenticationScheme: Bearer was challenged
.
2023-02-20 15:31:39.976 +00:00 [INF] CORS policy execution successful.
2023-02-20 15:31:39.984 +00:00 [INF] Executing endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi)'
2023-02-20 15:31:40.001 +00:00 [INF] Route matched with {controller = "GdprRequest", area = "gdpr", action = "GetDownloadToken", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Gdpr.DownloadTokenResultDto] GetDownloadTokenAsync(System.Guid) on controller Volo.Abp.Gdpr.GdprRequestController (Volo.Abp.Gdpr.HttpApi).
2023-02-20 15:31:40.142 +00:00 [INF] Request starting HTTP/1.1 GET https://myAPI.azurewebsites.net/api/app/financial/get-payment-host?FilterDateTime=2023-02-20T15%3A31%3A33.8560000Z&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - -
2023-02-20 15:31:40.143 +00:00 [INF] CORS policy execution successful.
2023-02-20 15:31:40.144 +00:00 [INF] Executing endpoint 'BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi)'
2023-02-20 15:31:40.144 +00:00 [INF] Route matched with {area = "app", controller = "Financial", action = "GetHostToTenantPaymentInfo", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[BSR.Beinni.Financials.Dto.FinancialInfoWithTenantOutputDto]] GetHostToTenantPaymentInfo(BSR.Beinni.Financials.Dto.FinancialPagedAndSortedInputDto) on controller BSR.Beinni.Controllers.Financials.FinancialController (BSR.Beinni.HttpApi).
2023-02-20 15:31:40.174 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Gdpr.DownloadTokenResultDto'.
2023-02-20 15:31:40.181 +00:00 [INF] Executed action Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi) in 180.7125ms
2023-02-20 15:31:40.181 +00:00 [INF] Executed endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi)'
2023-02-20 15:31:40.182 +00:00 [INF] Request finished HTTP/1.1 GET https://myAPI.azurewebsites.net/api/gdpr/requests/download-token?id=cc4b2bfc-8b1c-1f8c-60b7-3a077937f944&api-version=1.0 - - - 200 - application/json;+charset=utf-8 206.0568ms
2023-02-20 15:31:40.325 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[BSR.Beinni.Financials.Dto.FinancialInfoWithTenantOutputDto, BSR.Beinni.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2023-02-20 15:31:40.326 +00:00 [INF] Executed action BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi) in 181.9332ms
2023-02-20 15:31:40.326 +00:00 [INF] Executed endpoint 'BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi)'
2023-02-20 15:31:40.326 +00:00 [INF] Request finished HTTP/1.1 GET https://myAPI.azurewebsites.net/api/app/financial/get-payment-host?FilterDateTime=2023-02-20T15%3A31%3A33.8560000Z&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - - - 200 - application/json;+charset=utf-8 183.6733ms
2023-02-20 15:31:40.442 +00:00 [INF] Request starting HTTP/1.1 GET https://myAPI.azurewebsites.net/api/gdpr/requests/data/cc4b2bfc-8b1c-1f8c-60b7-3a077937f944?token=574ac128-3118-4bad-bee4-1173002415da - -
2023-02-20 15:31:40.443 +00:00 [INF] Executing endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi)'
2023-02-20 15:31:40.462 +00:00 [INF] Route matched with {controller = "GdprRequest", area = "gdpr", action = "GetUserData", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Content.IRemoteStreamContent] GetUserDataAsync(System.Guid, System.String) on controller Volo.Abp.Gdpr.GdprRequestController (Volo.Abp.Gdpr.HttpApi).
2023-02-20 15:31:40.632 +00:00 [INF] AuthenticationScheme: Bearer was challenged.
2023-02-20 15:31:40.633 +00:00 [INF] Executed action Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi) in 171.1934ms
2023-02-20 15:31:40.633 +00:00 [INF] Executed endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi)'
I can't see any other relavant logs in the Auth service or in these API logs...
Hi we figured out that our Blazor WASM issue with this is still an issue (we are on 7.0.1 separte Identity)
https://support.abp.io/QA/Questions/4071/401-error-when-trying-to-download-GDPR-information
We still get a 401 error and have no idea what we need to do/add to gett it to work (if there is somethint we can do on our side).
Btw commenting here because our issue is locked..
First I´m trying to figure out if/how I can do this without loading files first into memory but if I get that to work it would be great to know if anybody has done anything like this here?
I found this good answer and I think this should be possible but I need to get a SAS token and enable Cross-Origin Resource Sharing (CORS) support for Azure Storage
Is this something that can be built into the current ABP.io Blob storage wrapper?
Before I begin I would like to have some validation on my approach.
I need to upload big files (+3GB) to Azure blob storage from Blazor WASM.
I did set this up so that the files are streamed through an API to the service where they are then moved from there to a blob storage. This is an extra step from just going directly to blob and takes space and resources from the server.
So my question is: can't I just us https://docs.abp.io/en/abp/7.0/Blob-Storing and go directly to blob? Are there any issues? Can I use this directly from Blazor WASM?
The reason I ask would be because of the Azure.Storage.Account.ConnectionString I would need to fetch somehow (API?) encrypted and decrypt when using.
And then I need to enable CORS to the blob (having trouble finding information on that)
Access to fetch at 'https://mystuff.blob.core.windows.net/0-event-poster-images?restype=container' from origin 'https://localhost:44307' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.