Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo security

Quarkus Application with Form Authentication using Database

Let's create a simple Quarkus application that uses databases table for authorization and authentication. This tutorial uses MariaDB and Quarkus 1.1.0.Final. Database configuration Remember to NEVER store plain text in the database. Elytron has the tools to use bcrypt for password encryption as described in the Quarkus JDBC security guide . We need to configure the database tables where the user, password and roles will be stored. Let's create the tables in the database: * User table keeps the username and password; * Roles is where you can find all the system roles; * User_role is user mapping to their roles Which translated to the following SQL: create table user(id int primary key,                              username varchar(100) unique,                              password varchar(1000)); create table role(i...