@@ -15,10 +15,9 @@ This README provides quickstart instructions on running [`reactify-core`]() on b
15
15
16
16
[ ![ SonarCloud] ( https://sonarcloud.io/images/project_badges/sonarcloud-white.svg )] ( https://sonarcloud.io/summary/new_code?id=hoangtien2k3_reactify )
17
17
18
- [ ![ CircleCI] ( https://circleci.com/gh/hoangtien2k3/reactify.svg?style=svg )] ( https://app.circleci.com/pipelines/github/hoangtien2k3/reactify )
19
18
[ ![ 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 )
20
19
[ ![ 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 )
22
21
[ ![ License] ( https://img.shields.io/badge/license-Apache--2.0-green.svg )] ( https://www.apache.org/licenses/LICENSE-2.0.html )
23
22
[ ![ OpenSSF Best Practices] ( https://www.bestpractices.dev/projects/9383/badge )] ( https://www.bestpractices.dev/projects/9383 )
24
23
[ ![ 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 {
77
76
78
77
#### 2. Config your project file ` application.yml ` or ` application.properties `
79
78
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
+
80
112
` ` ` yml
81
113
# spring config
82
114
spring :
@@ -86,7 +118,7 @@ spring:
86
118
messages :
87
119
basename : i18n/messages
88
120
89
- # connect db R2DBC PostgreSQL
121
+ # connect db R2DBC PostgreSQL || MySQL || MariaDB ...
90
122
r2dbc :
91
123
url : r2dbc:postgresql://localhost:5434/auth
92
124
username : admin
0 commit comments