Skip to content

Database

This authorization server accesses its database through Micronaut R2DBC.

The database must exist before starting SympAuthy. Only the schema (tables, indexes, etc.) is created automatically on first startup.

r2dbc.datasources.default

KeyTypeDescriptionRequired
Default
urlstringR2DBC connection URL to the database.YES
usernamestringUsername used to authenticate to the database.YES
passwordstringPassword used to authenticate to the database.NO

Supported databases

PostgreSQL

yaml
r2dbc:
  datasources:
    default:
      url: r2dbc:postgresql://<host>:<port>/<database>
      username: <username>
      password: <password>

H2 (in-memory, for development only)

yaml
r2dbc:
  datasources:
    default:
      url: r2dbc:h2:mem:///sympauthy