File tree 3 files changed +25
-4
lines changed
java/org/springframework/security/web/aot/hint
resources/org/springframework/security
test/java/org/springframework/security/web/aot/hint
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -34,7 +34,9 @@ class UserCredentialRuntimeHints implements RuntimeHintsRegistrar {
34
34
35
35
@ Override
36
36
public void registerHints (RuntimeHints hints , ClassLoader classLoader ) {
37
- hints .resources ().registerPattern ("org/springframework/security/user-credentials-schema.sql" );
37
+ hints .resources ()
38
+ .registerPattern ("org/springframework/security/user-credentials-schema.sql" )
39
+ .registerPattern ("org/springframework/security/user-credentials-schema-postgres.sql" );
38
40
}
39
41
40
42
}
Original file line number Diff line number Diff line change
1
+ create table user_credentials
2
+ (
3
+ credential_id varchar (1000 ) not null ,
4
+ user_entity_user_id varchar (1000 ) not null ,
5
+ public_key bytea not null ,
6
+ signature_count bigint ,
7
+ uv_initialized boolean ,
8
+ backup_eligible boolean not null ,
9
+ authenticator_transports varchar (1000 ),
10
+ public_key_credential_type varchar (100 ),
11
+ backup_state boolean not null ,
12
+ attestation_object bytea ,
13
+ attestation_client_data_json bytea ,
14
+ created timestamp ,
15
+ last_used timestamp ,
16
+ label varchar (1000 ) not null ,
17
+ primary key (credential_id)
18
+ );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -53,7 +53,8 @@ void credentialRecordsSqlFilesHasHints(String schemaFile) {
53
53
}
54
54
55
55
private static Stream <String > getClientRecordsSqlFiles () {
56
- return Stream .of ("org/springframework/security/user-credentials-schema.sql" );
56
+ return Stream .of ("org/springframework/security/user-credentials-schema.sql" ,
57
+ "org/springframework/security/user-credentials-schema-postgres.sql" );
57
58
}
58
59
59
60
}
You can’t perform that action at this time.
0 commit comments