Skip to content

Commit 78f78c6

Browse files
authored
Fix incorrect settings for h2 console (#30)
* Fix incorrect settings for h2 console * Update README.md
1 parent 9a77853 commit 78f78c6

File tree

3 files changed

+50
-27
lines changed

3 files changed

+50
-27
lines changed

README.md

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Basically, FIDO2 has the following operations - Registration, Authentication.
4343
- The device uses the user’s account identifier provided by the service to select the correct key and sign the service’s challenge.
4444
- The client device sends the signed challenge back to the service, which verifies it with the stored public key and lets the user log in.
4545

46-
46+
4747
## Screenshots
4848
### Chrome on Mac with TouchId
4949
<img src="images/chrome_mac_touchid.gif" width="600" align="center" alt="registration_flow"/>
@@ -65,23 +65,23 @@ Basically, FIDO2 has the following operations - Registration, Authentication.
6565

6666
## Features
6767
- Supported attestation types
68-
- Basic
69-
- Self
70-
- Attestation CA (a.k.a Privacy CA)
71-
- None
72-
- Anonymization CA
68+
- Basic
69+
- Self
70+
- Attestation CA (a.k.a Privacy CA)
71+
- None
72+
- Anonymization CA
7373
- Supported attestation formats
74-
- Packed (FIDO2)
75-
- Tpm (Windows10 devices)
76-
- Android key attestation
77-
- Android SafetyNet (Any Android devices running 7+)
78-
- FIDO U2F (Legacy U2F authenticators)
79-
- Apple Anonymous
80-
- None
74+
- Packed (FIDO2)
75+
- Tpm (Windows10 devices)
76+
- Android key attestation
77+
- Android SafetyNet (Any Android devices running 7+)
78+
- FIDO U2F (Legacy U2F authenticators)
79+
- Apple Anonymous
80+
- None
8181
- Metadata service integration
82-
- FIDO MDSv2
83-
84-
## How to run
82+
- FIDO MDSv2
83+
84+
## How to run
8585
You need to run the FIDO2 server and RP Server first.
8686

8787
If you want to integrate your own RP Server, please implement APIs by referring to the sample codes. Regarding client sides, you may implement the web app for communicating with the RP server.
@@ -113,7 +113,7 @@ docker-compose up
113113

114114
After running the applications, you can open the test page at the link below.
115115

116-
**http://localhost:8080/**
116+
**http://localhost:8080/**
117117

118118
### Local DB
119119
FIDO2 Server running on local environments uses h2 as an embedded DB. This needs to be replaced with commercial standalone DB for other environments such as staging, beta or real.
@@ -122,6 +122,17 @@ In the case of the local environment, you can use the h2 console. Add the follow
122122

123123
e.g., http://localhost:8081/h2-console
124124

125+
126+
If the below error occurs while logging in to h2-console,
127+
```
128+
No suitable driver found for 08001/0
129+
```
130+
try to remove or comment out *logbook-spring-boot-starter* from build.gradle.
131+
132+
```
133+
implementation('org.zalando:logbook-spring-boot-starter:1.8.1')
134+
```
135+
125136
### Lombok
126137
This project utilizes Lombok to reduce implementing getter/setter/constructors. You need the Lombok plugin to build with IntelliJ and Eclipse.
127138
See the following web pages to get information.
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
spring:
22
profiles:
33
active: local
4+
h2:
5+
console:
6+
enabled: true
7+
settings:
8+
web-allow-others: true
9+
datasource:
10+
driver-class-name: org.h2.Driver
11+
url: jdbc:h2:mem:userdb;
12+
username: sa
13+
password:
414
server:
515
port: 8081
616
redis:
@@ -12,8 +22,4 @@ logging:
1222
com.linecorp.line: DEBUG
1323
org.springframework.web: DEBUG
1424
org.hibernate: DEBUG
15-
h2:
16-
console:
17-
enabled: true
18-
settings:
19-
web-allow-others: true
25+
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
spring:
22
profiles:
33
active: local
4+
h2:
5+
console:
6+
enabled: true
7+
settings:
8+
web-allow-others: true
9+
datasource:
10+
driver-class-name: org.h2.Driver
11+
url: jdbc:h2:mem:userdb;
12+
username: sa
13+
password:
414
server:
515
port: 8081
616
redis:
@@ -12,8 +22,4 @@ logging:
1222
com.linecorp.line: DEBUG
1323
org.springframework.web: DEBUG
1424
org.hibernate: DEBUG
15-
h2:
16-
console:
17-
enabled: true
18-
settings:
19-
web-allow-others: true
25+

0 commit comments

Comments
 (0)