Hi,
We used ABP Data Management Module and we can upload file with authserver swagger endpoints successfully.
When I try to upload with web host request, I got some error. Then, I added web host to cors-origin to authserver appsettings file. But I got a an other error from upload request. It returned successful array but id is broken. How can I request from web host?
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:
- ABP Framework version: v7.3.1
- UI Type: / MVC /
- Database System: SQL Server,
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
9 Answer(s)
-
0
hi
When I try to upload with web host request, I got some error. Then, I added web host to cors-origin to authserver appsettings file. But I got a an other error from upload request. It returned successful array but id is broken. How can I request from web host?
What's the error?
but id is broken.
Can you explain it in detail?
-
0
-
0
hi
Authenticationscheme : openIddict. validation.AspNetcore was not authenticated.
Does your request carry the access_token?
-
0
-
0
hi
I mean
access_token
.Authorization: Bearer access_token....
-
0
access_token
Hi,
I couldn't see access_token in my request. I used file management service from AuthServer. I think I can't send a access_token to file managment service from WEB host. Because, I could upload file from AuthServer/Swagger endpoint. But I couldn't do this operation from web MVC UI with using by same endpoint. How should I send access_token?
-
0
-
0
hi
I think the
UPPY_UPLOAD_ENDPOINT
should be your web host url.But, Our file management module and endpoints are consumed from AuthServer. We want to use File Service as a different microservice actually. So we put it AuthServer for now, we will to move another microservice in the future.
How can I add a current token to microservice endpoint from js. file?
AuthServer/swagger
-
0
Can you share a simple project?
liming.ma@volosoft.com