このリンクに従って、「remember me」機能のために永続トークンアプローチを実装しようとしています。トークンはデータベース (postgres) に保存されます。ただし、データソースを適切に設定しましたが、次のことを試してみると:
<remember-me data-source-ref="dataSource" />
データベースにトークン データが自動的に入力されません。それ以外の場合、「remember me」機能はうまく機能します (データベースのみが自動的に入力されません)。理由はありますか?
テーブル ddl:
create table users(
uid serial primary key,
username varchar(255) not null,
password varchar(255) not null,
firstname varchar(255) not null,
lastname varchar(255) not null,
enabled boolean not null,
constraint cs_username_unq unique(username),
constraint cs_uid_username_unq unique(uid, username)
);
create table authorities (
username varchar(255) not null,
authority varchar(255) not null,
constraint fk_authorities_users foreign key(username) references users(username)
);
create unique index ix_auth_username on authorities (username,authority);
create table persistent_logins (
username varchar(255) not null,
series varchar(255) primary key,
token varchar(255) not null,
last_used timestamp not null
);