Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6a1a8cd7

Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)

Database exported to script
- removed initialization from application
- updated docker-compose.yml to create volume and add data from script

re #9746

Zobrazit rozdíly:

backend/src/main/java/cz/zcu/kiv/backendapi/security/jwt/JwtUsernameAndPasswordAuthenticationFilter.java
77 77
    protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authentication) throws IOException {
78 78
        UserEntity user = (UserEntity) authentication.getPrincipal();
79 79

  
80
        Algorithm algorithm = jwtUtils.getAlgorithm(); //TODO secure
80
        Algorithm algorithm = jwtUtils.getAlgorithm();
81 81

  
82 82
        String access_token = JWT.create()
83 83
                .withSubject(user.getUsername())

Také k dispozici: Unified diff