Skip to content

Commit

Permalink
Merge pull request #273 from VAuthenticator/patch-for-the-generate-ra…
Browse files Browse the repository at this point in the history
…ndom-secret-in-the-management-ui

fix
  • Loading branch information
mrFlick72 authored Jan 18, 2025
2 parents 63dff7c + 803500b commit a5e2b3c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ data class CallbackUri(val content: String)
data class PostLogoutRedirectUri(val content: String)
data class LogoutUri(val content: String)

data class Scopes(val content: Set<Scope>) {
data class Scopes(val content: Set<Scope>) {
companion object {
fun from(vararg scope: Scope) = Scopes(setOf(*scope))
}
Expand Down Expand Up @@ -94,6 +94,7 @@ data class Scope(val content: String) {
MAIL_VERIFY,
RESET_PASSWORD,
CHANGE_PASSWORD,
GENERATE_PASSWORD,

KEY_READER,
KEY_EDITOR,
Expand Down
76 changes: 38 additions & 38 deletions src/main/resources/data/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ CREATE TABLE PASSWORD_HISTORY

CREATE TABLE MFA_ACCOUNT_METHODS
(
user_name varchar(255) not null,
mfa_device_id varchar(255) not null,
mfa_method varchar(255) not null,
mfa_channel varchar(255) not null,
key_id varchar(255) not null,
associated varchar(255) not null,
default_mfa_method boolean default false,
user_name varchar(255) not null,
mfa_device_id varchar(255) not null,
mfa_method varchar(255) not null,
mfa_channel varchar(255) not null,
key_id varchar(255) not null,
associated varchar(255) not null,
default_mfa_method boolean default false,

primary key (user_name, mfa_channel)
);
Expand All @@ -88,7 +88,7 @@ CREATE TABLE CLIENT_APPLICATION
(
client_app_id varchar(255) not null PRIMARY KEY,
secret varchar(255) not null,
scopes text not null,
scopes text not null,
with_pkce boolean not null default false,
authorized_grant_types varchar(255) not null,
web_server_redirect_uri varchar(255) not null,
Expand All @@ -106,34 +106,34 @@ CREATE TABLE oauth2_authorization
registered_client_id varchar(100) NOT NULL,
principal_name varchar(200) NOT NULL,
authorization_grant_type varchar(100) NOT NULL,
authorized_scopes varchar(1000) DEFAULT NULL,
attributes text DEFAULT NULL,
state varchar(500) DEFAULT NULL,
authorization_code_value text DEFAULT NULL,
authorization_code_issued_at timestamp DEFAULT NULL,
authorization_code_expires_at timestamp DEFAULT NULL,
authorization_code_metadata text DEFAULT NULL,
access_token_value text DEFAULT NULL,
access_token_issued_at timestamp DEFAULT NULL,
access_token_expires_at timestamp DEFAULT NULL,
access_token_metadata text DEFAULT NULL,
access_token_type varchar(100) DEFAULT NULL,
access_token_scopes varchar(1000) DEFAULT NULL,
oidc_id_token_value text DEFAULT NULL,
oidc_id_token_issued_at timestamp DEFAULT NULL,
oidc_id_token_expires_at timestamp DEFAULT NULL,
oidc_id_token_metadata text DEFAULT NULL,
refresh_token_value text DEFAULT NULL,
refresh_token_issued_at timestamp DEFAULT NULL,
refresh_token_expires_at timestamp DEFAULT NULL,
refresh_token_metadata text DEFAULT NULL,
user_code_value text DEFAULT NULL,
user_code_issued_at timestamp DEFAULT NULL,
user_code_expires_at timestamp DEFAULT NULL,
user_code_metadata text DEFAULT NULL,
device_code_value text DEFAULT NULL,
device_code_issued_at timestamp DEFAULT NULL,
device_code_expires_at timestamp DEFAULT NULL,
device_code_metadata text DEFAULT NULL,
authorized_scopes text DEFAULT NULL,
attributes text DEFAULT NULL,
state varchar(500) DEFAULT NULL,
authorization_code_value text DEFAULT NULL,
authorization_code_issued_at timestamp DEFAULT NULL,
authorization_code_expires_at timestamp DEFAULT NULL,
authorization_code_metadata text DEFAULT NULL,
access_token_value text DEFAULT NULL,
access_token_issued_at timestamp DEFAULT NULL,
access_token_expires_at timestamp DEFAULT NULL,
access_token_metadata text DEFAULT NULL,
access_token_type varchar(100) DEFAULT NULL,
access_token_scopes text DEFAULT NULL,
oidc_id_token_value text DEFAULT NULL,
oidc_id_token_issued_at timestamp DEFAULT NULL,
oidc_id_token_expires_at timestamp DEFAULT NULL,
oidc_id_token_metadata text DEFAULT NULL,
refresh_token_value text DEFAULT NULL,
refresh_token_issued_at timestamp DEFAULT NULL,
refresh_token_expires_at timestamp DEFAULT NULL,
refresh_token_metadata text DEFAULT NULL,
user_code_value text DEFAULT NULL,
user_code_issued_at timestamp DEFAULT NULL,
user_code_expires_at timestamp DEFAULT NULL,
user_code_metadata text DEFAULT NULL,
device_code_value text DEFAULT NULL,
device_code_issued_at timestamp DEFAULT NULL,
device_code_expires_at timestamp DEFAULT NULL,
device_code_metadata text DEFAULT NULL,
PRIMARY KEY (id)
);
);

0 comments on commit a5e2b3c

Please sign in to comment.