Spring Boot api secure with jwt for web api

Anshul Ghanshala 0 Reputation points
2024-07-18T16:53:20.7166667+00:00

https://github.com/Azure-Samples/azure-spring-boot-samples/tree/main/aad/spring-cloud-azure-starter-active-directory/web-client-access-resource-server/aad-resource-server

I followed this to create my spring boot resource server to protect my API.
But it's not working and I can login without sending any authorization token (jwt).

I also followed this medium article
https://medium.com/version-1/azure-ad-integration-in-spring-boot-application-81d66ffd4739

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,069 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,513 questions
{count} votes