Activities of "sumeyye.kurtulus"

Hello, I cannot produce the same problem on my end. Could you provide the update details in your package.json?

Hello, you will need to use parentName to group the navigation items.

You can follow this documentation for managing navigation elements in angular: https://abp.io/docs/latest/framework/ui/angular/modifying-the-menu#how-to-add-a-navigation-element

You can also get a reference from here for blazor: https://abp.io/docs/latest/framework/ui/blazor/navigation-menu#menu-item-properties

Hello, this problem was fixed with this release https://github.com/abpframework/abp/releases/tag/9.0.5 in this PR https://github.com/abpframework/abp/pull/22120

Hello, this problem has been fixed with the version 9.0.6

You can move @angular-eslint/builder and @angular-eslint/schematics dependencies to peerDependencies in your package.json file for the time being like this:

{
  ...
  "private": true,
  "dependencies": {
    "@abp/ng.account": "~9.0.5",
    "@abp/ng.components": "~9.0.5",
    "@abp/ng.core": "~9.0.5",
    "@abp/ng.identity": "~9.0.5",
    "@abp/ng.oauth": "~9.0.5",
    "@abp/ng.setting-management": "~9.0.5",
    "@abp/ng.tenant-management": "~9.0.5",
    "@abp/ng.theme.lepton-x": "~4.0.6",
    "@abp/ng.theme.shared": "~9.0.5",
    "@angular/animations": "~18.1.0",
    "@angular/common": "~18.1.0",
    "@angular/compiler": "~18.1.0",
    "@angular/core": "~18.1.0",
    "@angular/forms": "~18.1.0",
    "@angular/localize": "~18.1.0",
    "@angular/platform-browser": "~18.1.0",
    "@angular/platform-browser-dynamic": "~18.1.0",
    "@angular/router": "~18.1.0",
    "bootstrap-icons": "~1.8.0",
    "rxjs": "~7.8.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.14.0"
  },
  "devDependencies": {
    "@abp/ng.schematics": "~9.0.5",
    "@angular-devkit/build-angular": "~18.1.0",
    "@angular-eslint/eslint-plugin": "~18.1.0",
    "@angular-eslint/eslint-plugin-template": "~18.1.0",
    "@angular-eslint/template-parser": "~18.1.0",
    "@angular/cli": "~18.1.0",
    "@angular/compiler-cli": "~18.1.0",
    "@angular/language-service": "~18.1.0",
    "@types/jasmine": "~3.6.0",
    "@types/node": "^12.11.1",
    "@typescript-eslint/eslint-plugin": "7.16.0",
    "@typescript-eslint/parser": "7.16.0",
    "eslint": "^8.0.0",
    "jasmine-core": "~4.0.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.1.0",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.7.0",
    "typescript": "~5.5.0"
  },
  "peerDependencies": {
    "@angular-eslint/builder": "~18.1.0",
    "@angular-eslint/schematics": "~18.1.0"
  }
}

Thanks for reaching out! I understand the frustration, and let's resolve this step by step.

First error:

[Invalid Module] Backend module "CoreService" does not exist in API definition.

  • This suggests that CoreService is not defined in the API.
  • Check CoreServiceRemoteServiceConsts.cs for the correct module name and update your command accordingly.
Second error:

[Project Not Found] Either define a default project in your workspace or specify the project name in schematics options.

  • This happens when the Angular CLI can't find the project.
  • Verify the project name in angular.json
 "projects": {
    "ticket8665": {
      "projectType": "application",
      ...
      "root": "projects/ticket8665",
      "sourceRoot": "projects/ticket8665/src",
      "prefix": "app",
      ...
    },
    "my-service-1": {
      "projectType": "library",
      "root": "projects/my-service-1",
      "sourceRoot": "projects/my-service-1/src",
      "prefix": "lib",
      ...
    },
    "my-service-2": {
      "projectType": "library",
      "root": "projects/my-service-2",
      "sourceRoot": "projects/my-service-2/src",
      "prefix": "lib",
      ...
    }
  }

For reference, here’s a sample project. If issues persist, please share your API definition and error screenshot so we can assist further.

Could you also try replacing the component like this https://abp.io/docs/latest/framework/ui/angular/component-replacement#how-to-replace-a-component

import { ReplaceableComponentsService } from '@abp/ng.core';
import { Component, inject } from '@angular/core';
import { eThemeLeptonXComponents } from '@volosoft/abp.ng.theme.lepton-x';
import { MySettingsComponent } from './my-settings/my-settings.component';

@Component({
  selector: 'app-root',
  template: `
    <abp-loader-bar></abp-loader-bar>
    <abp-dynamic-layout></abp-dynamic-layout>
    <abp-gdpr-cookie-consent></abp-gdpr-cookie-consent>
  `,
})
export class AppComponent {
  private replaceComponent = inject(ReplaceableComponentsService);
  constructor() {
    this.replaceComponent.add({
      component: MySettingsComponent,
      key: eThemeLeptonXComponents.Toolbar,
    });
  }
}

Hello again, I understand your frustration regarding the ticket closure. We are continuously working on improving our processes, including refining our support automation to prevent premature closures.

As for the React Native templates, the work is in progress, and we appreciate your patience and cooperation. If you need any further updates or have any concerns, feel free to reach out—we are happy to assist.

I'm using abp-nav-items
in the abp-nav-items I have the logout button so now do I need to write custom component for SSO to logout?

because I need to add logout logic in this button

Logout process should also require another custom logic. Here is how you can manage that part:

import { UserMenuService } from '@abp/ng.theme.shared';
import { eUserMenuItems } from '@volosoft/abp.ng.theme.lepton-x';
import { APP_INITIALIZER, inject, NgModule } from '@angular/core';

@NgModule({
  ...
  providers: [
    ...
    { provide: APP_INITIALIZER, useFactory: userMenuFactory },
    ...
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}

function userMenuFactory() {
  const userMenu = inject(UserMenuService);

  userMenu.patchItem(eUserMenuItems.Logout, {
    action: () => {
      console.log('Custom logout action');
    },
  });
}

Hi I'm going to write this custom guard, correct me if i'm wrong, thanks.

import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router, } from '@angular/router'; import { Observable } from 'rxjs'; import { OktaAuthService } from './okta-auth.service'; // Your OktaAuthService import { OAuthService } from 'angular-oauth2-oidc'; // ABP's OAuthService

@Injectable({ providedIn: 'root', }) export class CustomAuthGuard implements CanActivate { constructor( private oktaAuthService: OktaAuthService, private oAuthService: OAuthService, private router: Router ) {}

canActivate( route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Observable<boolean> | Promise<boolean> | boolean { return this.checkAuthentication(state.url); }

private async checkAuthentication(returnUrl: string): Promise<boolean> { const isOktaAuthenticated = await this.oktaAuthService.isAuthenticated(); const hasValidAccessToken = this.oAuthService.hasValidAccessToken();

if (isOktaAuthenticated || hasValidAccessToken) { 
  return true; 
} else { 
  // Redirect to your custom login page or handle unauthenticated access 
  this.router.navigate(['/login'], { queryParams: { returnUrl } }); 
  return false; 
} 

} }

Hello again, your implementation is correct, but using both OktaAuthService and OAuthService might be redundant unless your app requires multiple authentication providers (e.g., Okta for some users and OAuth2 for others).

If both services are needed, consider abstracting authentication logic into a single service to simplify maintenance. Otherwise, removing the unnecessary check can reduce complexity.

The authGuard also utilizes the angular-oauth2-oidc library, as I mentioned earlier. You can refer to the implementation here: https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/oauth/src/lib/guards/oauth.guard.ts

Since authGuard follows the logic of this library, you may need to adjust or replace it based on your specific authentication flow.

Regarding permissionGuard, it should not cause any issues. Could you verify your logic and let me know if the issue persists?

Showing 361 to 370 of 539 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on February 17, 2026, 09:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.