Activities of "ElifKaya"

Thank you so much !

[maliming] said: Hi

You can share the test project , I will add the code for interception.

Thanks.

I send test project, thank you so much

[maliming] said: hi

Can you share a demo project with your code?

I will check it.

liming.ma@volosoft.com

Thanks

I have already Attribute.cs and Interceptor.cs. I want to continue with my custom solution. But, how should I configure my interceptor in ConfigureServices. Or, If you have any example to manage an interceptor for an application service, could you please send me the example link?

.

[AI-Bot] said:

  • The [InterceptedBy] attribute is not available in ABP 9.1.0, and AbpCastleProxyOptions has been removed in recent ABP versions.
  • The recommended way to apply a custom interceptor to specific services or methods in ABP 9.1.0 is to register your interceptor globally and, inside your interceptor logic, check for the presence of your custom attribute (as you are already doing). This allows you to conditionally execute logic only for methods or classes marked with your attribute.
  • Conditional registration of interceptors based on a custom attribute is not natively supported in ABP 9.1.0. Instead, you must use the pattern you have implemented: register the interceptor for all services, and inside the interceptor, check for your custom attribute before executing your logic.

Your current approach—checking for the attribute within the interceptor—is the correct and supported method in ABP 9.1.0.

No verified source available for this specific query.


This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

I'm using ABP Framework version 9.1.0 and I have created:

A custom attribute (e.g., [CheckBaseModelProviderAttribute]) A class implementing IInterceptor (e.g., CheckBaseModelProviderInterceptor) I apply the attribute to some application services, and I can confirm that the attribute is being hit (debug point works). However, the interceptor itself is not being triggered.

My goal is to ensure that whenever a service or method is decorated with [CheckBaseModelProviderAttribute], the CheckBaseModelProviderInterceptor logic runs.

My questions:

How should I register this interceptor in MyProjectModule.cs (inside ConfigureServices) so that it works with the custom attribute? Is there a way in ABP 9.1.0 to conditionally apply an interceptor based on a custom attribute? Is AbpCastleProxyOptions available in this version, or is there an alternative way to wire up the interceptor? Thanks in advance for your help!

[EngincanV] said: Hi, ABP does not check if the URL is empty or not, it's a nullable field, because in your code you may want to write audit logs for any internal process call. For example, you may want to audit log your event handlers and for these cases, the URL should be emptyl and you can also think similar scenerios where HttpContext is not in the place.

If you don't want to log if the URL is empty, then you can create audit log contributor or configure AbpAuditingOptions and add a selector to its AlwaysLogSelectors property. (See https://abp.io/docs/latest/framework/infrastructure/audit-logging#abpauditingoptions)

Thanks

Yes, thanks. I used it that way too

Hi,

Actually, the problem lies in our cloud environment. It works fine on local. So, I need to check cloud settings.

Okay, then I am waiting to hear from you.

If you cannot solve your problem, you can write the points you suspect here, I can help as much as I can.

Thank you, the problem has been resolved. It was related to the App_SelfUrl. I removed the port number from the auth server URL, and it works fine now.

Hello,

I created a project from scratch in the configurations you specified in order to repeat the problem, but I could not repeat it, you can see the GIF below. If you want, you can create a project from scratch and try to reproduce the problem.


You can reproduce the problem both locally and in production environment on your existing solution, right?

Actually, the problem lies in our cloud environment. It works fine on local. So, I need to check cloud settings.

Thank you

After clicking the 'forgot my password' link, I followed the link sent to my email, but I still can't access the app. Is the information in the link correct? Additionally, I am using the application without a tenant in this scenario.

https://auth.testdomain:44342/Account/ResetPassword?userId=b37dfea8-0fe8-d474-5438-3a16e0eaf901&__tenant=&resetToken=CfDJ8KEnJQ%2B39CJPkEDBMKjXRrMB5zqmWi6%2Fy9Fgh%2FZAKzi2LM0nkqoa%2Fq7%2BDEtyzyJtayTrXzvI%2B5v8QnVwJtcrtLlx%2B378HpUf4xCLQ%2BE9uzWcd0DhbguaXkgNwEDZiJ6k6XToZucMGRE7%2BsHCvQIyJDIAJoH5Lqc0GbZkyoNB8MkVjhA0WCNUnqGm%2BtAPhvIZLAqRhcmO1ShlSR9BS0yErV3sYEjR7KBK0tGObQ4je9fC&returnUrl=%2fconnect%2fauthorize%3fresponse_type%3dcode%26client_id%3dPSSX_App_NMM_QA%26state%3dNHdBWHNtSUJRUUNhQ0FCTGtaSnR0eGJhZmxQSERwLnpTRnFqbEU0SS5iR3Rf%3b%25252Flogin%26redirect_uri%3dhttps%253A%252F%252Fsimpl.nmm-qa.testdomain%26scope%3dopenid%2520profile%2520roles%2520email%2520phone%2520PSSX%26code_challenge%3ddep8FZ1sqYWGaAq2QsdjMDbbEoEwdFfmt1q8Yh4uFv8%26code_challenge_method%3dS256%26nonce%3dNHdBWHNtSUJRUUNhQ0FCTGtaSnR0eGJhZmxQSERwLnpTRnFqbEU0SS5iR3Rf

Yes, the URL seems to be correct. Exactly what kind of problem are you having?

When I click on the password reset link from email, I get the error like on the screenshot. It didn't direct to the application to change password page. I thought something was wrong in the link.

Hi,

That's weird. Could you please share a simple project with me? i will check it.

my email is shiwei.liang@volosoft.com

I send it thanks

Showing 1 to 10 of 66 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20