diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..d4d242c --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,13 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: yamiannephilim +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry +custom: paypal.me/yamiannephilim diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..001e7b5 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 diff --git a/pom.xml b/pom.xml index e1c3420..42be862 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 org.springframework.boot @@ -79,6 +81,36 @@ java-jwt 4.0.0 + + org.yaml + snakeyaml + 2.0 + + + org.springframework + spring-core + 5.3.27 + + + com.fasterxml.jackson.core + jackson-databind + 2.13.4.2 + + + net.minidev + json-smart + 2.4.9 + + + org.springframework.security + spring-security-core + 5.7.8 + + + org.springframework.boot + spring-boot-autoconfigure + 2.7.12 + diff --git a/src/main/java/com/nohit/jira_project/security/ApplicationSecurity.java b/src/main/java/com/nohit/jira_project/security/ApplicationSecurity.java index dc93757..2e61025 100644 --- a/src/main/java/com/nohit/jira_project/security/ApplicationSecurity.java +++ b/src/main/java/com/nohit/jira_project/security/ApplicationSecurity.java @@ -49,7 +49,7 @@ protected void configure(HttpSecurity http) throws Exception { .permitAll() .antMatchers(CART_VIEW + FREE_VIEW, CHECKOUT_VIEW + FREE_VIEW, HISTORY_VIEW + FREE_VIEW, ORDER_VIEW + FREE_VIEW, PROFILE_VIEW + FREE_VIEW) - .hasRole(CLIENT).anyRequest().authenticated().and().formLogin().loginPage(LOGIN_VIEW) + .hasRole(CLIENT).anyRequest().permitAll().and().formLogin().loginPage(LOGIN_VIEW) .loginProcessingUrl(LOGIN_VIEW).defaultSuccessUrl(INDEX_VIEW).failureUrl(LOGIN_VIEW + "?error=true") .permitAll().and().logout().invalidateHttpSession(true).clearAuthentication(true).permitAll().and() .exceptionHandling().accessDeniedPage(LOGIN_VIEW).and().rememberMe() diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 7fdb099..bd60a81 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -7,8 +7,8 @@ - - Title | nohitElectronics + <title> + Trang Chủ | nohitElectronics @@ -406,4 +406,4 @@

- \ No newline at end of file +