Skip to content

Commit 4e487f9

Browse files
Maisydsyer
authored andcommitted
fix typo
1 parent 6d3ce29 commit 4e487f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom-error/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public OAuth2UserService<OAuth2UserRequest, OAuth2User> oauth2UserService(WebCli
106106
DefaultOAuth2UserService delegate = new DefaultOAuth2UserService();
107107
return request -> {
108108
OAuth2User user = delegate.loadUser(request);
109-
if (!"github".equals(request.getClientRegistration.getRegistrationId())) {
109+
if (!"github".equals(request.getClientRegistration().getRegistrationId())) {
110110
return user;
111111
}
112112
@@ -148,4 +148,4 @@ public WebClient rest(ClientRegistrationRepository clients, OAuth2AuthorizedClie
148148
----
149149

150150
TIP: Obviously the code above can be generalized to other authentication rules, some applicable to GitHub and some to other OAuth 2.0 providers.
151-
All you need is the `WebClient` and some knowledge of the provider's API.
151+
All you need is the `WebClient` and some knowledge of the provider's API.

0 commit comments

Comments
 (0)