@@ -7,9 +7,9 @@ one can perform auxiliary actions such as adding an additional authenticator or
7
7
deregistering a credential.
8
8
9
9
The central part is the
10
- link:src/main/java/demo/webauthn/WebAuthnServer.java[`WebAuthnServer`]
10
+ link:https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-demo/ src/main/java/demo/webauthn/WebAuthnServer.java[`WebAuthnServer`]
11
11
class, and the
12
- link:src/main/java/demo/webauthn/WebAuthnRestResource.java[`WebAuthnRestResource`]
12
+ link:https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-demo/ src/main/java/demo/webauthn/WebAuthnRestResource.java[`WebAuthnRestResource`]
13
13
class which provides the REST API on top of it.
14
14
15
15
@@ -32,21 +32,21 @@ link:../webauthn-server-core/[`webauthn-server-core`]
32
32
library:
33
33
34
34
- The front end interacts with the server via a *REST API*, implemented in
35
- link:src/main/java/demo/webauthn/WebAuthnRestResource.java[`WebAuthnRestResource`].
35
+ link:https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-demo/ src/main/java/demo/webauthn/WebAuthnRestResource.java[`WebAuthnRestResource`].
36
36
+
37
37
This layer manages translation between JSON request/response payloads and domain
38
38
objects, and most methods simply call into analogous methods in the server
39
39
layer.
40
40
41
41
- The REST API then delegates to the *server layer*, implemented in
42
- link:src/main/java/demo/webauthn/WebAuthnServer.java[`WebAuthnServer`].
42
+ link:https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-demo/ src/main/java/demo/webauthn/WebAuthnServer.java[`WebAuthnServer`].
43
43
+
44
44
This layer manages the general architecture of the system, and is where most
45
45
business logic and integration code would go. The demo server implements the
46
46
"persistent" storage of users and credential registrations - the
47
47
link:https://developers.yubico.com/java-webauthn-server/JavaDoc/webauthn-server-core/2.5.0/com/yubico/webauthn/CredentialRepository.html[`CredentialRepository`]
48
48
integration point - as the
49
- link:src/main/java/demo/webauthn/InMemoryRegistrationStorage.java[`InMemoryRegistrationStorage`]
49
+ link:https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-demo/ src/main/java/demo/webauthn/InMemoryRegistrationStorage.java[`InMemoryRegistrationStorage`]
50
50
class, which simply keeps them stored in memory for a limited time. The
51
51
transient storage of pending challenges is also kept in memory, but for a
52
52
shorter duration.
@@ -103,7 +103,7 @@ To build it, run
103
103
=== Standalone Java executable
104
104
105
105
The standalone Java executable has the main class
106
- link:src/main/java/demo/webauthn/EmbeddedServer.java[`demo.webauthn.EmbeddedServer`].
106
+ link:https://github.com/Yubico/java-webauthn-server/blob/main/webauthn-server-demo/ src/main/java/demo/webauthn/EmbeddedServer.java[`demo.webauthn.EmbeddedServer`].
107
107
This server also serves the REST API at `/api/v1/`, and static resources for the
108
108
GUI under `/`.
109
109
0 commit comments