Skip to content

Commit

Permalink
Fix the typo
Browse files Browse the repository at this point in the history
  • Loading branch information
always-hii authored and Buzzardo committed Jun 5, 2020
1 parent 274b864 commit 5cc3b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom-error/README.adoc
Expand Up @@ -95,7 +95,7 @@ To spice things up a bit, you can extend the authentication rule to reject users
You can use the GitHub API to find out more about the user, so you'll just need to plug that into the right part of the authentication process.

Fortunately, for such a simple use case, Spring Boot has provided an easy extension point:
If you declare a `@Bean` of type `OAuth2UserService`, it will be used identify the user principal.
If you declare a `@Bean` of type `OAuth2UserService`, it will be used to identify the user principal.
You can use that hook to assert the the user is in the correct organization, and throw an exception if not:

.SocialApplication.java
Expand Down

0 comments on commit 5cc3b36

Please sign in to comment.