Skip to content

Commit

Permalink
Fix incorrect settings for h2 console (line#30)
Browse files Browse the repository at this point in the history
* Fix incorrect settings for h2 console

* Update README.md
  • Loading branch information
kj84park committed Aug 25, 2022
1 parent 9a77853 commit 78f78c6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 27 deletions.
45 changes: 28 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Basically, FIDO2 has the following operations - Registration, Authentication.
- The device uses the user’s account identifier provided by the service to select the correct key and sign the service’s challenge.
- 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.


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

## Features
- Supported attestation types
- Basic
- Self
- Attestation CA (a.k.a Privacy CA)
- None
- Anonymization CA
- Basic
- Self
- Attestation CA (a.k.a Privacy CA)
- None
- Anonymization CA
- Supported attestation formats
- Packed (FIDO2)
- Tpm (Windows10 devices)
- Android key attestation
- Android SafetyNet (Any Android devices running 7+)
- FIDO U2F (Legacy U2F authenticators)
- Apple Anonymous
- None
- Packed (FIDO2)
- Tpm (Windows10 devices)
- Android key attestation
- Android SafetyNet (Any Android devices running 7+)
- FIDO U2F (Legacy U2F authenticators)
- Apple Anonymous
- None
- Metadata service integration
- FIDO MDSv2
## How to run
- FIDO MDSv2

## How to run
You need to run the FIDO2 server and RP Server first.

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.
Expand Down Expand Up @@ -113,7 +113,7 @@ docker-compose up

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

**https://localhost:8080/**
**https://localhost:8080/**

### Local DB
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.
Expand All @@ -122,6 +122,17 @@ In the case of the local environment, you can use the h2 console. Add the follow

e.g., https://localhost:8081/h2-console


If the below error occurs while logging in to h2-console,
```
No suitable driver found for 08001/0
```
try to remove or comment out *logbook-spring-boot-starter* from build.gradle.

```
implementation('org.zalando:logbook-spring-boot-starter:1.8.1')
```

### Lombok
This project utilizes Lombok to reduce implementing getter/setter/constructors. You need the Lombok plugin to build with IntelliJ and Eclipse.
See the following web pages to get information.
Expand Down
16 changes: 11 additions & 5 deletions server/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
spring:
profiles:
active: local
h2:
console:
enabled: true
settings:
web-allow-others: true
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:userdb;
username: sa
password:
server:
port: 8081
redis:
Expand All @@ -12,8 +22,4 @@ logging:
com.linecorp.line: DEBUG
org.springframework.web: DEBUG
org.hibernate: DEBUG
h2:
console:
enabled: true
settings:
web-allow-others: true

Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
spring:
profiles:
active: local
h2:
console:
enabled: true
settings:
web-allow-others: true
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:userdb;
username: sa
password:
server:
port: 8081
redis:
Expand All @@ -12,8 +22,4 @@ logging:
com.linecorp.line: DEBUG
org.springframework.web: DEBUG
org.hibernate: DEBUG
h2:
console:
enabled: true
settings:
web-allow-others: true

0 comments on commit 78f78c6

Please sign in to comment.