Hello abpnewtonvisionco,
I have checked your code, I think you are missing to add File
in your generateFormData
method ->
Could you please try with this code
private generateFormData(file: File | null) {
if (!file) {
return null;
}
const formData = new FormData();
formData.append('file', file);
formData.append('fileName', file.name);
formData.append('contentType', file.type);
formData.append('contentLength', file.size.toString());
return formData;
}
Please do let us know if this helps you or if anything else is needed
Thank you, Anjali
Hello alexander.nikonov,
Please try to add this code in app.component.ts
import { AuthService } from '@abp/ng.core';
import { Router } from '@angular/router';
import { OAuthService } from 'angular-oauth2-oidc';
import { filter, tap } from 'rxjs';
constructor(private oAuthService: OAuthService , private router: Router, private authService: AuthService) {
this.oAuthService.events
.pipe(filter(event => event?.type === 'logout'),
tap(() => {
this.authService.logout().subscribe(() => {
this.authService.init()
this.authService.navigateToLogin();
});
})).subscribe();
}
please do let me know if this helps you.
Thank you, Anjali
Hello Sagar.chinna,
We are trying to reproduce this issue, but it will take some time. Please have a look at the links below if you think they may be useful. https://community.fabric.microsoft.com/t5/Service/Power-BI-Rest-API-wont-accept-Application-Token/m-p/2510908 https://community.fabric.microsoft.com/t5/Service/Power-BI-Rest-API-wont-accept-Application-Token/m-p/2514468#M160047
Also could you please check you token details on https://jwt.io/ and share a screenshot of decoded details only
Please do let me know if anything else is needed.
Thank You, Anjali
Hi
can you share a screenshot of PreConfigureServices in your AuthServerModule ?
i want to see options.AddAudiences("Bookshop");
in your AuthServerModule
is it possible to share the authurl, angular and backend URL over email to support@abp.io with the ticket id?
Hello aksogut,
Thanks for confirming we are closing it.
Thank you, Anjali
Hello sanobarm@cloudassert.com,
Thank you for your confirmation. Closing the ticket.
Thank you, Anjali
Hi,
Can you share your PreConfigureService Code from HttpApiHostModule?