Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thinkmicroservices/59a90eb2f7e5d70efaead8458787041b to your computer and use it in GitHub Desktop.
Save thinkmicroservices/59a90eb2f7e5d70efaead8458787041b to your computer and use it in GitHub Desktop.
AuthenticationService: @Autowired fields .java
/**
* The discovery client provides access
* to the <b>ServiceDiscovery</b> service.
*/
@Autowired
private DiscoveryClient discoveryClient;
/**
* Provides access to <b>User</b> entities.
*/
@Autowired
private UserRepository userRepository;
/**
* Provides access to <b>Role</b> entities.
*/
@Autowired
private RoleRepository roleRepository;
/**
* Responsible for the generation of JSON Web tokens <b>JWT</b>
*/
@Autowired
private JWTProvider jwtProvider;
/**
* Provides encryption support for passwords
*/
@Autowired
private PasswordEncoder bcryptEncoder;
/**
* Provides an email client that sends email messages through
* the <b>NotificationService</b>.
*/
@Autowired
private EmailClient emailClientService;
/**
* Provides a message channel for sending <b>Account Events</b> to the
* applications message broker.
*/
@Autowired
private AccountEventSource accountEventSource;
/**
* Provides various string validation methods
*/
@Autowired
private Validator validator;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment