Questions tagged [spring-cloud-azure]
The spring-cloud-azure tag has no usage guidance.
spring-cloud-azure
23
questions
0
votes
2
answers
90
views
AccessDeniedHandler not called when using AadResourceServerHttpSecurityConfigurer
My application is a simple resource server — I am using AadResourceServerHttpSecurityConfigurer.aadResourceServer() to validate the given access token. The specific documentation I have followed can ...
0
votes
1
answer
45
views
JdbcOAuth2AuthorizedClientService not working with AadWebApplicationHttpSecurityConfigurer but did with AadWebSecurityConfigurerAdapter
After migrating from Spring Cloud Azure 4.x to 5.x, the JdbcOAuth2AuthorizedClientService no longer seems to save the "OAuth2 Authorized Client".
Previous 4.6 code:
@EnableWebSecurity
@...
0
votes
0
answers
63
views
authentication to azure don't return an access token for my api
I created a basic spring boot application with spring cloud azure
@RestController
public class TestController {
@GetMapping("admin")
@ResponseBody
public String getInfo(@...
1
vote
0
answers
270
views
Spring Boot 3.2.1 and spring-cloud-azure-starter-active-directory 5.11.0
I'm attempting to following Microsoft's instructions for Protecting a resource server/API using Spring Boot 3.2.1.
application.yml
spring:
cloud:
azure:
active-directory:
enabled: ...
0
votes
1
answer
185
views
Plain Spring: Load secrets from Azure Key Vault
I am currently trying to replace hardcoded secrets on my Spring (non SpringBoot) application using the Spring Cloud Azure library as documented in here.
Currently I have managed to retrieve the ...
0
votes
2
answers
686
views
How to configure Spring Cloud Azure Active Directory and Spring Boot OAuth2 together?
I've configured GitHub and Google via Spring Security application.properties and now I'm trying to add Active Directory.
I've added spring-cloud-azure-starter-active-directory and I also configured it ...
0
votes
1
answer
99
views
Autowiring KeyClient with Spring Cloud Azure
I have set up a Spring Cloud Azure application. I use both secrets and keys in my Azure Keyvault. I started with integrating secrets and followed https://spring.io/projects/spring-cloud-azure, which ...
0
votes
2
answers
735
views
azure-spring-boot-starter-keyvault-secrets autoconfiguration of SecretClient does not work with spring-boot 2.7.17
I set up connection between spring-boot and AKV and everything works fine when @Bean SecretClient is added explicitly.
I have looked across various code samples and for azure-spring-boot-starter-...
1
vote
1
answer
120
views
Accesing endpoint from browser is working but not from postman
i have a question regarding the testing flow for accesing a resorce(an endpint in a java spring cloud application) secured by Azure Active Directory.
So when i am accesing the resource from browser ...
0
votes
0
answers
50
views
java spring azure cloud ad from cookie based to token based
I have a spring boot azure active directory application and i need to change it from cookie based JSESSIONID to token based because currently its cookie based. The app is simple just a yaml file with ...
2
votes
1
answer
798
views
Spring Boot 3.0 with Azure AAD Security and CORS not working, worked in Spring Boot 2.6
For our application we had to write a custom OIDCUserService and OIDCUser objects as well as customize Azure's AAD Security Config with Spring.
Here is the code for Spring Boot 2.6 that works.
@...
0
votes
1
answer
166
views
NoSuchFieldError: Companion for azure.application-insights
Currently migrating my spring-boot app to use the latest compatibile version for JDK 8. I'm currently receiving this error when running the spring-boot-app
ightsTelemetryAutoConfiguration': ...
0
votes
2
answers
942
views
AAD Token authentication in RestApi Spring boot 3
I would like to allow resources access in my RestApi Spring Boot 3 application by bearer token received from Azure AD.
POM:
<dependency>
<groupId>org.springframework.boot</...
1
vote
1
answer
1k
views
Connecting to Azure Service bus using spring-cloud-azure-starter-servicebus-jms
I am trying to follow microsoft documentation on connecting to azure service bus using spring-cloud-azure-starter-servicebus-jms.
Ref but no luck .
Pom file :
<?xml version="1.0" ...
0
votes
1
answer
377
views
Using Azure event hubs stream, max-attempts not working
I use "spring-cloud-azure-stream-binder-eventhubs" for event hubs development. Now when I deal with consumers, there may be some business exceptions.
my config
stream:
function:
...