how can I change some "Pre-Defined Events" to fanout exchange and other Events direct?
Dears,
Kindly your support
How ABP added ant-design style in organization screen without added it in angular.json?
Dears,
Kindly support,
Dears,
Kindly your support,
Thanks for your support
Hi,
after we search, we found in IIdentityServer.AddDeveloperSigningCredential Generate different tempkey.jwk for each server,
and ABP was created as a private method in the module "Volo.Abp.IdentityServer.Domain" but actual not used, private static IIdentityServerBuilder AddAbpDeveloperSigningCredential
I solve the problem with the following code:
PreConfigure<AbpIdentityServerBuilderOptions>(builder =>
{
builder.AddDeveloperSigningCredential = false;
});
var certificate = new X509Certificate2(filePath, password);
services.AddSigningCredential(certificate);
PreConfigure<IIdentityServerBuilder>(builder =>
{
builder.AddSigningCredential(certificate);
});
Is there any notes can you provide me in publishing Projects? or Is there any Videos to help me publish abp project?
Hi,
Thanks for support muhammedaltug
Hi,
I made these steps
abp new Naama.MainCore --template module-pro
ng generate module components/lookups/countries --module main-core --routing true --route countries --project main-core
into CountriesComponent, I call same service Url by RestService and HttpClient
by RestService => ApiInterceptor working by HttpClient => ApiInterceptor not working
this.restService.request<any, any>({ method: 'GET', url: '/api/main-core/country/get-lookup-list' }, { apiName: 'MainCore' }).subscribe(r => {
debugger;
console.log(r);
});
this.http.get('https://localhost:44380/api/main-core/country/get-lookup-list').subscribe(r => {
debugger;
console.log(r);
});
Hi,
why ABP HTTP_INTERCEPTORS does not send an Authorization Bearer token,when use httpclient.
I only need to any request call by HttpClient or RestService, automatically ApiInterceptor add Authorization Bearer token.
ApiInterceptor HttpInterceptor use @Injectable({providedIn: 'root'}) decorator, but Authorization Bearer token not added to request
@Injectable({ providedIn: 'root', }) export class ApiInterceptor implements HttpInterceptor { constructor( private oAuthService: OAuthService, private sessionState: SessionStateService, private httpWaitService: HttpWaitService, @Inject(TENANT_KEY) private tenantKey: string, ) {}
intercept(request: HttpRequest<any>, next: HttpHandler) { this.httpWaitService.addRequest(request); return next .handle( request.clone({ setHeaders: this.getAdditionalHeaders(request.headers), }), ) .pipe(finalize(() => this.httpWaitService.deleteRequest(request))); }
getAdditionalHeaders(existingHeaders?: HttpHeaders) { const headers = {} as any;
const token = this.oAuthService.getAccessToken();
if (!existingHeaders?.has('Authorization') && token) {
headers['Authorization'] = `Bearer ${token}`;
}
const lang = this.sessionState.getLanguage();
if (!existingHeaders?.has('Accept-Language') && lang) {
headers['Accept-Language'] = lang;
}
const tenant = this.sessionState.getTenant();
if (!existingHeaders?.has(this.tenantKey) && tenant?.id) {
headers[this.tenantKey] = tenant.id;
}
return headers;
} }