<dependency>
<groupId>com.auth0</groupId>
<artifactId>auth0-spring-security-api</artifactId>
<version>1.1.0</version>
</dependency>
Add the following lines to your base code
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@Component
public class SecuredPingController {
@RequestMapping(value = "/secured/ping")
@ResponseBody
public String securedPing() {
return "All good. You only get this message if you're authenticated";
}
}
Auth0 is the easiest way for developers to integrate enterprise-grade authentication and identity management to any app.
SOC 2, HIPAA/BAA, EU/US Privacy Shield Framework, Open ID Certified.
Learn MoreContinuously reviewed and tested by external security experts. Strong password encryption and hashing algorithms, at rest and in transit.
Learn MoreContinuously reviewed and tested by external security experts. Strong password encryption and hashing algorithms, at rest and in transit.
Learn MoreUptime time in 3 different regions.
Learn MoreDeploy On-Premises or on Cloud on your data center or Auth0’s one.
Learn MoreAuthenticate iOS Swift - Sign In With Apple with Azure Active Directory
Authenticate Ruby On Rails API with Azure Active Directory
Authenticate ASP.NET Core Web API v2.1 with Azure Active Directory
Authenticate Windows Universal App C# with Azure Active Directory
Authenticate Django API with Azure Active Directory