Giter VIP home page Giter VIP logo

marketclone's Introduction

πŸš€ Kim Gaeun


쒋은 μ„œλΉ„μŠ€λ₯Ό λ§Œλ“œλŠ” κ°œλ°œμžκ°€ 되고 μ‹Άμ–΄μš”.

πŸ“š κΈ°μˆ μŠ€νƒ




πŸ„ μ‚¬μ΄λ“œ ν”„λ‘œμ νŠΈ

포카이브 "λ°©νƒ„μ†Œλ…„λ‹¨(BTS) ν¬ν† μΉ΄λ“œ κ΅ν™˜ ν”Œλž«νΌ" (μ„œλΉ„μŠ€ 쀑!) App douwnload

Zzz project "ν•¨κ»˜ μ–˜κΈ°ν•˜λ©° μ¦κΈ°λŠ” 온라인 3D λ°©νƒˆμΆœ!!" GitHub

More

πŸ’¬ Linkedin

πŸ’¬ e-mail: [email protected]


Hits

marketclone's People

Contributors

cooked-developer avatar paran22 avatar sun-land avatar

Watchers

 avatar

marketclone's Issues

과제 μ½”λ©˜νŠΈμž…λ‹ˆλ‹€

μ—”ν„°ν‹°λ₯Ό 직접 ν”„λ‘ νŠΈμ— μ „λ‹¬ν•˜μ§€ μ•Šκ³  dto둜 κ°μ‹Έμ„œ μ „λ‹¬ν•΄μ£ΌλŠ” 것은 μ’‹μ•˜μŠ΅λ‹ˆλ‹€. λ‹€λ§Œ μ—¬κΈ°μ„œ ν”„λ‘œμ νŠΈκ°€ μ»€μ§€κ²Œ 되면 λ§Žμ€ ν΄λž˜μŠ€κ°€ μƒμ„±λœλ‹€λŠ” λ¬Έμ œκ°€ μžˆλŠ”λ°μš”. μ–΄λ–»κ²Œν•˜λ©΄ request responseλ₯Ό ν•˜λ‚˜μ˜ dto classμ—μ„œ μ²˜λ¦¬ν•  수 μžˆμ„μ§€ κ³ λ―Όν•΄λ³΄μ‹œλ©΄ 쒋을 것 κ°™μŠ΅λ‹ˆλ‹€ (ν‚€μ›Œλ“œ: static inner class)

음 그리고 λ¦¬λ“œλ―Έ νŒŒμΌμ—μ„œ μ‚¬μš© 기술의 버전을 λͺ…μ‹œν•΄μ£Όλ©΄ 쒋을 것 κ°™μŠ΅λ‹ˆλ‹€.
이슈 μ •λ¦¬ν•œ 뢀뢄은 μ’‹μ•˜μŠ΅λ‹ˆλ‹€. 좔후에도 λ‚ μ§œλ³„λ‘œ μ΄μŠˆμ— λŒ€ν•΄μ„œ νŠΈλž˜ν‚Ήν•˜μ‹œλ©΄ 더 쒋을 것 κ°™μŠ΅λ‹ˆλ‹€.!

[μ½”λ©˜νŠΈ μš”μ²­ - λ‚΄μš© 상세]

β€˜S3Uploader ν΄λž˜μŠ€β€™μ— S3에 이미지λ₯Ό μ €μž₯ν•˜λŠ” upload λ©”μ†Œλ“œλ₯Ό μž‘μ„±ν–ˆμŠ΅λ‹ˆλ‹€.
아직 파일 μ‚¬μ΄μ¦ˆλ₯Ό μ œν•œν•˜λŠ” 뢀뢄을 μž‘μ„±ν•˜μ§€ μ•Šμ•„μ„œ 큰 파일이 λ„˜μ–΄μ˜€λ©΄ μ—λŸ¬κ°€ λ°œμƒν•  것 κ°™μ•„μš”. 이 λΆ€λΆ„ 외에도 μ œκ°€ μ§  μ½”λ“œμ—μ„œ μ—λŸ¬κ°€ λ°œμƒν•  수 μžˆλŠ” 뢀뢄이 μžˆμ„κΉŒμš”?

그리고 파일의 메타 데이터에 데이터 νƒ€μž…κ³Ό μ‚¬μ΄μ¦ˆλ§Œ λ„£μ—ˆλŠ”λ°μš”
ν•„μˆ˜μ μœΌλ‘œ λ“€μ–΄κ°€μ•Ό ν•˜λŠ” 메타 데이터가 또 μžˆμ„κΉŒμš”?

[μ½”λ©˜νŠΈ μš”μ²­]security μ—λŸ¬ λ©”μ‹œμ§€

μ‹œνλ¦¬ν‹°μ—μ„œ JWT 토큰을 μ‚¬μš©ν•˜λ©΄μ„œ , JwtAuthFilter에 μ œμ™Έλ˜λŠ” apiλ₯Ό WebSecurityConfig에 μ§€μ •ν•΄μ£Όμ—ˆλŠ”λ°μš”.

JwtAuthFilter에와 같이 토큰이 μ—†λŠ” 경우 μ•„λž˜μ™€ 같이 μ—λŸ¬λ©”μ‹œμ§€λ₯Ό 보여주도둝 μ½”λ“œλ₯Ό μž‘μ„±ν–ˆμ—ˆλŠ”λ°(κΉƒν—ˆλΈŒ μ½”λ“œλŠ” μˆ˜μ •ν•˜μ˜€μŠ΅λ‹ˆλ‹€!), JwtAuthFilter에 μ œμ™Έλ˜λŠ” api(/products/)μ—μ„œ 400μ—λŸ¬κ°€ λ°œμƒν•˜λŠ” κ²½μš°μ—λ„(@RequestParam λ¬Έμ œμ˜€μŠ΅λ‹ˆλ‹€.) μ•„λž˜μ˜ μ—λŸ¬λ©”μ‹œμ§€κ°€ 좜λ ₯λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

` @OverRide
public Authentication attemptAuthentication(
HttpServletRequest request,
HttpServletResponse response
) throws AuthenticationException, IOException {

    // JWT 값을 λ‹΄μ•„μ£ΌλŠ” λ³€μˆ˜ TokenPayload
    String tokenPayload = request.getHeader("Authorization");
    if (tokenPayload == null) {
        response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        response.setContentType("application/json;charset=utf-8");
        JSONObject json = new JSONObject();
        String message = "**토큰이 μ‘΄μž¬ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.**";
        json.put("httpStatus", HttpStatus.UNAUTHORIZED);
        json.put("errorMessage", message);

        PrintWriter out = response.getWriter();
        out.print(json);
    }`

ν•΄λ‹Ή κ²½λ‘œλŠ” JwtAuthFilterλ₯Ό 아에 μ•ˆνƒ„λ‹€κ³  μƒκ°ν–ˆλŠ”λ° μ™œ attemptAuthentication λ©”μ†Œλ“œκ°€ μ‹€ν–‰λ˜μ—ˆλŠ”μ§€ κΆκΈˆν•©λ‹ˆλ‹€!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.