I have the following issue
I have to secure an azure function developed with JAVA. I am using Spring Boot with Azure Function for development. To protect it, I use Spring Security, the configuration I have is the following:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests(authorizeRequests ->
authorizeRequests
.anyRequest().authenticated())
.oauth2ResourceServer(oauth2ResourceServer -> oauth2ResourceServer.jwt());
}
But it doesn't protect the function, however when I start the app by Spring Boot it works for me.
Any idea how to fix it?
Thanks in advance