Вывод консоли выглядит следующим образом:
Код: Выделить всё
12:39:05 DEBUG [i.s.j.auth] (executor-thread-1) SRJWT06000: tokenHeaderName = Cookie
12:39:05 DEBUG [i.s.j.auth] (executor-thread-1) SRJWT06002: tokenCookieName = access_token
12:39:05 DEBUG [i.s.j.auth] (executor-thread-1) SRJWT06003: Cookie access_token was null
Ниже вы найдете реализация ресурса и конфигурация внутри application.properties.
Код: Выделить всё
@Path("/action")
public class AuthActionResource {
private static final Logger LOG = Logger.getLogger(AuthActionResource.class);
@Inject AccountService accountService;
@POST
@Path("/register")
@PermitAll
@Consumes({MediaType.APPLICATION_FORM_URLENCODED, MediaType.MULTIPART_FORM_DATA})
public Response register(
@FormParam(value = "username") final String username,
@FormParam(value = "mail") final String mail,
@FormParam(value = "password") final String password,
@FormParam(value = "newsletter") final Boolean newsletter) {
accountService.createAccount(username, mail, password, newsletter);
return Response.status(200).build();
}
}
Код: Выделить всё
quarkus.http.root-path=/api/v1/auth
quarkus.http.auth.proactive=false
quarkus.security.jaxrs.deny-unannotated-endpoints=false
mp.jwt.signer.privatekey.location=privateKey.pem
mp.jwt.verify.publickey.location=publicKey.pem
mp.jwt.verify.issuer=https://your-issuer.com
mp.jwt.token.ttl=86400
mp.jwt.token.header = Cookie
mp.jwt.token.cookie = access_token
Подробнее здесь: https://stackoverflow.com/questions/785 ... -permitall