Skip to content
Snippets Groups Projects
Commit ae196bd9 authored by Manuel Spuhler's avatar Manuel Spuhler
Browse files

Re enabled jwt token

parent 83dbea15
No related branches found
No related tags found
No related merge requests found
......@@ -2,19 +2,18 @@ package eu.hbp.mip.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
//import com.auth0.jwt.algorithms.Algorithm;
//import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.JWT;
public class JWTUtil {
//private static final Logger LOGGER = LoggerFactory.getLogger(JWT.class);
private static final Logger LOGGER = LoggerFactory.getLogger(JWT.class);
public static String getJWT(String secret, String subject) {
//LOGGER.info("getJWT");
// Algorithm algorithm = Algorithm.HMAC512(secret);
// String token = JWT.create().withIssuer("mip.humanbrainproject.eu").withSubject(subject).sign(algorithm);
LOGGER.info("getJWT");
Algorithm algorithm = Algorithm.HMAC512(secret);
String token = JWT.create().withIssuer("mip.humanbrainproject.eu").withSubject(subject).sign(algorithm);
// return token;
return "";
return token;
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment