Revize 6a1a8cd7
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/security/jwt/JwtTokenVerifier.java | ||
---|---|---|
62 | 62 |
|
63 | 63 |
try { |
64 | 64 |
String token = authorizationHeader.substring(jwtUtils.getTokenPrefix().length()); |
65 |
Algorithm algorithm = jwtUtils.getAlgorithm(); //TODO secure
|
|
65 |
Algorithm algorithm = jwtUtils.getAlgorithm(); |
|
66 | 66 |
JWTVerifier verifier = JWT.require(algorithm).build(); |
67 | 67 |
DecodedJWT decodedJWT = verifier.verify(token); |
68 | 68 |
String username = decodedJWT.getSubject(); |
Také k dispozici: Unified diff
Database exported to script
- removed initialization from application
- updated docker-compose.yml to create volume and add data from script
re #9746