Thank you for your response. I ran the code with the basic profile and I put the breakpoint in *TenantAwareBasicAuthenticationFilter*.*java* class. by calling /actuator/health I realized that this filter does not execute in the actuator endpoints, But in oauth profile mode the filer *TenantAwareTenantIdentifierFilter.java* executes. I think maybe the problem is in *securityContext.xml* configuration. I checked it but I couldn't find out any differences.
On Thu, Oct 8, 2020 at 6:58 AM Petri Tuomola <pe...@tuomola.org> wrote: > I took a quick look at this: I think the problem is that > TenantAwareTenantIdentifierFilter rejects the request with > InvalidTenantIdentiferException because the URL > (/fineract-provider/actuator/health) does not have a tenant identifier. > > I’m not an expert on Spring Security, but I’m assuming this means the > custom-filter tag in securityContext that we use to insert the > TenantAwareTenantIdentifierFilter doesn’t actually “respect” the URL > pattern specified in the enclosing http tags: i.e. the custom filter gets > inserted to the filter chain for all URLs, not for ones matching the > specific URL pattern. > > Regards > Petri > > On 7 Oct 2020, at 10:31 PM, Yemdjih Kaze Nasser <kazenas...@gmail.com> > wrote: > > Hi, > > What does the call to actuator/health return? > > On Wed, Oct 7, 2020 at 12:27 PM reza sohbati <sohb...@gmail.com> wrote: > >> Hello everyone >> >> When I build the Fineract with -Psecurity=oauth argument, everything >> is OK but the actuator health API does not return the proper value. >> I try to call this API : >> * fineract-provider/actuator/health* >> >> Thank you >> >> >> >