Provide a R2dbc implementation of ReactiveOuath2AuthorizedClientService

Implement R2dbcReactiveOuath2AuthorizedClientService which persists the
Oauth2AuthorizedClient in a sql database

R2dbcReactiveOuath2AuthorizedClientService is using the spring-r2dbc
module to persist/load Oauth2AuthorizedClient to/from a sql database

Add optional depedency to the spring-r2dbc module
Add test compile dependencies to r2dbc-h2 and r2dbc-test

Closes gh-7890
This commit is contained in:
Ovidiu Popa
2020-06-26 08:58:56 +03:00
committed by Joe Grandja
parent f8cc48fe2b
commit 6724e3e514
3 changed files with 771 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ dependencies {
optional 'com.fasterxml.jackson.core:jackson-databind'
optional 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
optional 'org.springframework:spring-jdbc'
optional 'org.springframework:spring-r2dbc'
testCompile project(path: ':spring-security-oauth2-core', configuration: 'tests')
testCompile project(path: ':spring-security-oauth2-jose', configuration: 'tests')
@@ -22,6 +23,8 @@ dependencies {
testCompile 'io.projectreactor:reactor-test'
testCompile 'io.projectreactor.tools:blockhound'
testCompile 'org.skyscreamer:jsonassert'
testCompile 'io.r2dbc:r2dbc-h2:0.8.4.RELEASE'
testCompile 'io.r2dbc:r2dbc-spi-test:0.8.3.RELEASE'
testRuntime 'org.hsqldb:hsqldb'