Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osiv2-postfach
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
osiv2-postfach
Merge requests
!2
Resolve "Bauen eines Mock Servicekonto & Mock Osi Fassade"
Code
Änderungen prüfen
Branch auschecken
Herunterladen
Patches
Unformatierter Diff
Closed
Resolve "Bauen eines Mock Servicekonto & Mock Osi Fassade"
2-erstellung-osiv2-repo
into
main
Overview
1
Commits
5
Pipelines
3
Changes
1
Closed
Jan Zickermann
requested to merge
2-erstellung-osiv2-repo
into
main
6 months ago
Overview
1
Commits
5
Pipelines
3
Changes
1
Expand
Closes
#2 (closed)
0
0
Merge request reports
Viewing commit
ca2c87d0
Prev
Next
Show latest version
1 file
+
9
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ca2c87d0
#2
config: Cleanup
· ca2c87d0
Jan Zickermann
authored
6 months ago
src/main/java/de/ozgcloud/nachrichten/postfach/osiv2/config/WebClientConfiguration.java
+
9
−
4
Options
@@ -33,6 +33,14 @@ public class WebClientConfiguration {
@Primary
ServerOAuth2AuthorizedClientExchangeFilterFunction
serverOAuth2AuthorizedClientExchangeFilterFunction
(
ReactiveClientRegistrationRepository
clientRegistrations
)
{
var
oauth
=
new
ServerOAuth2AuthorizedClientExchangeFilterFunction
(
authorizedClientManager
(
clientRegistrations
));
oauth
.
setDefaultClientRegistrationId
(
"osi2"
);
return
oauth
;
}
AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager
authorizedClientManager
(
ReactiveClientRegistrationRepository
clientRegistrations
)
{
var
clientService
=
new
InMemoryReactiveOAuth2AuthorizedClientService
(
clientRegistrations
);
var
authorizedClientManager
=
new
AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager
(
@@ -43,10 +51,7 @@ public class WebClientConfiguration {
.
clientCredentials
()
.
build
());
var
oauth
=
new
ServerOAuth2AuthorizedClientExchangeFilterFunction
(
authorizedClientManager
);
oauth
.
setDefaultClientRegistrationId
(
"osi2"
);
return
oauth
;
return
authorizedClientManager
;
}
}
Loading