@@ -15,10 +15,9 @@ This README provides quickstart instructions on running [`reactify-core`]() on b
1515
1616[ ![ SonarCloud] ( https://sonarcloud.io/images/project_badges/sonarcloud-white.svg )] ( https://sonarcloud.io/summary/new_code?id=hoangtien2k3_reactify )
1717
18- [ ![ CircleCI] ( https://circleci.com/gh/hoangtien2k3/reactify.svg?style=svg )] ( https://app.circleci.com/pipelines/github/hoangtien2k3/reactify )
1918[ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=hoangtien2k3_reactify&metric=alert_status )] ( https://sonarcloud.io/summary/new_code?id=hoangtien2k3_reactify )
2019[ ![ Lines of Code] ( https://sonarcloud.io/api/project_badges/measure?project=hoangtien2k3_reactify&metric=ncloc )] ( https://sonarcloud.io/summary/overall?id=hoangtien2k3_reactify )
21- [ ![ GitHub Release] ( https://img.shields.io/github/v/release/hoangtien2k3/reactify?label=latest%20release )] ( https://mvnrepository.com/artifact/io.github.hoangtien2k3/reactify )
20+ [ ![ GitHub Release] ( https://img.shields.io/github/v/release/hoangtien2k3/reactify?label=latest%20release )] ( https://mvnrepository.com/artifact/io.github.hoangtien2k3/reactify-core )
2221[ ![ License] ( https://img.shields.io/badge/license-Apache--2.0-green.svg )] ( https://www.apache.org/licenses/LICENSE-2.0.html )
2322[ ![ OpenSSF Best Practices] ( https://www.bestpractices.dev/projects/9383/badge )] ( https://www.bestpractices.dev/projects/9383 )
2423[ ![ Build status] ( https://github.com/ponfee/commons-core/workflows/build-with-maven/badge.svg )] ( https://github.com/hoangtien2k3/reactify/actions )
@@ -77,6 +76,39 @@ public class ExampleApplication {
7776
7877#### 2. Config your project file ` application.yml ` or ` application.properties `
7978
79+ ** Required oauth2 configuration** :
80+ ``` yml
81+ spring :
82+ # Config OAuth2 Keycloak
83+ security :
84+ oauth2 :
85+ client :
86+ provider :
87+ oidc :
88+ token-uri : ${keycloak.serverUrl}/realms/${keycloak.realm}/protocol/openid-connect/token
89+ registration :
90+ oidc :
91+ client-id : ${keycloak.clientId}
92+ client-secret : ${keycloak.clientSecret}
93+ authorization-grant-type : ${keycloak.grantType} # password || #client_credentials
94+ resourceserver :
95+ jwt :
96+ jwk-set-uri : ${keycloak.serverUrl}/realms/${keycloak.realm}/protocol/openid-connect/certs
97+ keycloak :
98+ client-id : ${keycloak.clientId}
99+
100+ # keycloak client config
101+ keycloak :
102+ clientId : ezbuy-client
103+ clientSecret : mI92QDfvi20tZgFtjpRAPWu8TR6eMHmw
104+ realm : ezbuy-server
105+ serverUrl : http://localhost:8080
106+ grantType : password
107+ host : localhost
108+ ` ` `
109+
110+ **Configure further if required**:
111+
80112` ` ` yml
81113# spring config
82114spring :
@@ -86,7 +118,7 @@ spring:
86118 messages :
87119 basename : i18n/messages
88120
89- # connect db R2DBC PostgreSQL
121+ # connect db R2DBC PostgreSQL || MySQL || MariaDB ...
90122 r2dbc :
91123 url : r2dbc:postgresql://localhost:5434/auth
92124 username : admin
0 commit comments