Configuration

Resource server configuration

spring:
  security:
    oauth2:
      resourceserver:
        jwt:
          issuer-uri: <authorization-server-base-url>
          jwk-set-uri: <authorization-server-base-url>/protocol/openid-connect/certs
  datasource:
    url: <database-url>
    driverClassName: <driver-class>
    username: admin
    password: <password>
  jpa:
    database-platform: <value>
application:
  allowed-origins: <origins,...>

Security

The Spring Boot application resources are secured using the Keycloak management system. This section summarizes the steps described in this tutorial: setup the resource server.

Keycloak server configuration

  1. Create a client

  2. Create a new role

Dependency

The keycloak-spring-boot-started is a required dependency and should be added to the project pom.xml file.

Project properties

Last updated

Was this helpful?