Skip to content

Commit 4e3ac12

Browse files
committed
webauthn: add webdriver test
- These tests verify the full end-to-end flow, including the javascript code bundled in the default login and logout pages. They require a full web browser, with support for Virtual Authenticators for automated testing. At this point in time, only Chrome supports virutal authenticators.
1 parent 30c9860 commit 4e3ac12

File tree

2 files changed

+350
-13
lines changed

2 files changed

+350
-13
lines changed

config/spring-security-config.gradle

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ dependencies {
3737
optional 'org.springframework:spring-messaging'
3838
optional 'org.springframework:spring-tx'
3939
optional 'org.springframework:spring-webmvc'
40-
optional'org.springframework:spring-web'
41-
optional'org.springframework:spring-webflux'
42-
optional'org.springframework:spring-websocket'
40+
optional 'org.springframework:spring-web'
41+
optional 'org.springframework:spring-webflux'
42+
optional 'org.springframework:spring-websocket'
4343
optional 'org.jetbrains.kotlin:kotlin-reflect'
4444
optional 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
4545
optional 'jakarta.annotation:jakarta.annotation-api'
@@ -50,13 +50,13 @@ dependencies {
5050
testImplementation project(':spring-security-aspects')
5151
testImplementation project(':spring-security-cas')
5252
testImplementation project(':spring-security-test')
53-
testImplementation project(path : ':spring-security-core', configuration : 'tests')
54-
testImplementation project(path : ':spring-security-ldap', configuration : 'tests')
55-
testImplementation project(path : ':spring-security-oauth2-client', configuration : 'tests')
56-
testImplementation project(path : ':spring-security-oauth2-resource-server', configuration : 'tests')
53+
testImplementation project(path: ':spring-security-core', configuration: 'tests')
54+
testImplementation project(path: ':spring-security-ldap', configuration: 'tests')
55+
testImplementation project(path: ':spring-security-oauth2-client', configuration: 'tests')
56+
testImplementation project(path: ':spring-security-oauth2-resource-server', configuration: 'tests')
5757
testImplementation project(':spring-security-saml2-service-provider')
58-
testImplementation project(path : ':spring-security-saml2-service-provider', configuration : 'tests')
59-
testImplementation project(path : ':spring-security-web', configuration : 'tests')
58+
testImplementation project(path: ':spring-security-saml2-service-provider', configuration: 'tests')
59+
testImplementation project(path: ':spring-security-web', configuration: 'tests')
6060
testImplementation "jakarta.inject:jakarta.inject-api"
6161
testImplementation "org.assertj:assertj-core"
6262
testImplementation "org.junit.jupiter:junit-jupiter-api"
@@ -103,25 +103,27 @@ dependencies {
103103
testImplementation 'org.springframework:spring-orm'
104104
testImplementation 'org.springframework:spring-tx'
105105
testImplementation 'org.springframework:spring-core-test'
106-
testImplementation ('org.springframework.data:spring-data-jpa') {
106+
testImplementation('org.springframework.data:spring-data-jpa') {
107107
exclude group: 'org.aspectj', module: 'aspectjrt'
108108
}
109109
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
110110
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
111111
testImplementation 'io.mockk:mockk'
112112
testImplementation 'org.junit.platform:junit-platform-launcher'
113113
testImplementation 'org.apache.maven.resolver:maven-resolver-connector-basic'
114-
testImplementation ('org.apache.maven.resolver:maven-resolver-impl') {
114+
testImplementation('org.apache.maven.resolver:maven-resolver-impl') {
115115
exclude(group: "javax.annotation", module: "javax.annotation-api")
116116
}
117-
testImplementation ('org.apache.maven:maven-resolver-provider') {
117+
testImplementation('org.apache.maven:maven-resolver-provider') {
118118
exclude(group: "javax.inject", module: "javax.inject")
119119
exclude(group: "javax.annotation", module: "javax.annotation-api")
120120
}
121-
testImplementation ('org.apache.maven.resolver:maven-resolver-transport-http') {
121+
testImplementation('org.apache.maven.resolver:maven-resolver-transport-http') {
122122
exclude group: "org.slf4j", module: "jcl-over-slf4j"
123123
}
124124
testImplementation libs.org.instancio.instancio.junit
125+
testImplementation libs.org.eclipse.jetty.jetty.server
126+
testImplementation libs.org.eclipse.jetty.jetty.servlet
125127

126128
testRuntimeOnly 'org.hsqldb:hsqldb'
127129
}

0 commit comments

Comments
 (0)