Skip to content

Commit

Permalink
🎨 增加TokenGrantBuilder的getAuthenticationManager,方便子类继承时获取Authenticatio…
Browse files Browse the repository at this point in the history
…nManager (#133)
  • Loading branch information
zorohu authored Dec 2, 2021
1 parent d0737d3 commit 166629f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public class TokenGrantBuilder {

private final AuthenticationManager authenticationManager;

public AuthenticationManager getAuthenticationManager() {
return authenticationManager;
}

public TokenGranter build(final AuthorizationServerEndpointsConfigurer endpoints) {
List<TokenGranter> tokenGranters = defaultTokenGranters(endpoints);
return new CompositeTokenGranter(tokenGranters);
Expand Down

0 comments on commit 166629f

Please sign in to comment.