├── .github ├── CODEOWNERS └── stale.yml ├── 01-Login ├── settings.gradle ├── .dockerignore ├── src │ ├── main │ │ ├── resources │ │ │ ├── auth0.properties.example │ │ │ ├── public │ │ │ │ └── logo.png │ │ │ ├── application.properties │ │ │ └── templates │ │ │ │ ├── fragments │ │ │ │ ├── footer.html │ │ │ │ ├── header.html │ │ │ │ ├── scripts.html │ │ │ │ └── navbar.html │ │ │ │ ├── layouts │ │ │ │ └── default.html │ │ │ │ ├── profile.html │ │ │ │ └── index.html │ │ └── java │ │ │ └── com │ │ │ └── auth0 │ │ │ └── example │ │ │ ├── App.java │ │ │ ├── mvc │ │ │ ├── ErrorController.java │ │ │ ├── HomeController.java │ │ │ ├── ProfileController.java │ │ │ ├── LoginController.java │ │ │ ├── LogoutController.java │ │ │ └── CallbackController.java │ │ │ ├── security │ │ │ ├── TokenAuthentication.java │ │ │ └── AppConfig.java │ │ │ └── util │ │ │ └── TokenUtils.java │ └── test │ │ └── java │ │ └── com │ │ └── auth0 │ │ └── example │ │ ├── security │ │ └── SecurityIntegrationTest.java │ │ └── util │ │ └── TokenUtilsTest.java ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── exec.ps1 ├── Dockerfile ├── exec.sh ├── build.gradle ├── gradlew.bat ├── README.md └── gradlew ├── README.md ├── LICENSE ├── .gitignore └── .circleci └── config.yml /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @auth0-samples/dx-sdks-approver 2 | -------------------------------------------------------------------------------- /01-Login/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'auth0-spring-security-mvc' 2 | 3 | -------------------------------------------------------------------------------- /01-Login/.dockerignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .gradle/ 3 | .idea/ 4 | build/ 5 | exec.sh 6 | exec.ps1 7 | README.md 8 | -------------------------------------------------------------------------------- /01-Login/src/main/resources/auth0.properties.example: -------------------------------------------------------------------------------- 1 | com.auth0.domain: {DOMAIN} 2 | com.auth0.clientId: {CLIENT_ID} 3 | com.auth0.clientSecret: {CLIENT_SECRET} -------------------------------------------------------------------------------- /01-Login/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-samples/auth0-spring-security-mvc-sample/HEAD/01-Login/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /01-Login/src/main/resources/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-samples/auth0-spring-security-mvc-sample/HEAD/01-Login/src/main/resources/public/logo.png -------------------------------------------------------------------------------- /01-Login/exec.ps1: -------------------------------------------------------------------------------- 1 | docker build -t auth0-samples/auth0-spring-security-mvc-01-login . 2 | docker run -p 3000:3000 -it auth0-samples/auth0-spring-security-mvc-01-login 3 | -------------------------------------------------------------------------------- /01-Login/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gradle:5.4.1-jdk8 2 | 3 | WORKDIR /tmp 4 | ADD . /tmp 5 | 6 | RUN gradle build 7 | 8 | CMD ["gradle", "clean", "bootRun"] 9 | EXPOSE 3000 10 | -------------------------------------------------------------------------------- /01-Login/exec.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | docker build -t auth0-samples/auth0-spring-security-mvc-01-login . 3 | docker run -p 3000:3000 -it auth0-samples/auth0-spring-security-mvc-01-login 4 | -------------------------------------------------------------------------------- /01-Login/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port: 3000 2 | logging.level.com.auth0.example: INFO 3 | logging.level.org.springframework.web: DEBUG 4 | logging.level.org.springframework.security: DEBUG 5 | logging.level.org.springframework.boot: DEBUG 6 | -------------------------------------------------------------------------------- /01-Login/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Auth0 Spring Boot 1 Login Sample [DEPRECATED] 2 | 3 | ## Deprecation Notice 4 | This repository has been deprecated and is no longer maintained. 5 | 6 | See the [Spring Boot 2 Login Samples](https://github.com/auth0-samples/auth0-spring-boot-login-samples) to see how to add authentication to your Spring Boot 2 application. -------------------------------------------------------------------------------- /01-Login/src/main/resources/templates/fragments/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
24 |
9 | 11 | This is a sample application that demonstrates an authentication flow for a web application using Spring MVC Security. 12 |
13 |