Changeset 24819a8


Ignore:
Timestamp:
03/04/24 17:07:57 (15 months ago)
Author:
Aleksandar Panovski <apano77@…>
Branches:
main
Children:
a2c6c2b
Parents:
b78c0c1
Message:

Authorization layer

Files:
6 added
4 edited

Legend:

Unmodified
Added
Removed
  • my-react-app/src/App.js

    rb78c0c1 r24819a8  
    1515import RestaurantInfo from "./components/RestaurantInfo";
    1616import LoginForm from "./components/Login";
     17import AppContent from "./components/AppContent";
    1718
    1819const App = () => {
     
    3435                    <Route path="/error" element={<ErrorPage/>}/>
    3536                </Routes>
     37                <AppContent/>
    3638            </Layout>
    3739        </Router>
     
    311313}
    312314
    313 
    314315export default App;
  • my-react-app/src/components/Login.js

    rb78c0c1 r24819a8  
    1 // Login.js
    21import React, { useState } from 'react';
    32import axios from 'axios';
  • pom.xml

    rb78c0c1 r24819a8  
    6969                </dependency>
    7070                <dependency>
     71                        <groupId>io.jsonwebtoken</groupId>
     72                        <artifactId>jjwt</artifactId>
     73                        <version>0.9.1</version>
     74                </dependency>
     75                <dependency>
    7176                        <groupId>junit</groupId>
    7277                        <artifactId>junit</artifactId>
     
    9297                        <artifactId>spring-boot-starter-data-rest</artifactId>
    9398                </dependency>
     99                <dependency>
     100                        <groupId>org.mapstruct</groupId>
     101                        <artifactId>mapstruct-processor</artifactId>
     102                        <version>1.5.3.Final</version>
     103                </dependency>
    94104        </dependencies>
    95105
  • src/main/java/com/example/rezevirajmasa/demo/config/SecurityConfig.java

    rb78c0c1 r24819a8  
    1212import org.springframework.security.web.SecurityFilterChain;
    1313import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
    14 import org.springframework.context.annotation.Configuration;
    1514import org.springframework.web.servlet.config.annotation.CorsRegistry;
    1615import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
Note: See TracChangeset for help on using the changeset viewer.